TARAExtractofFields

TARA - Extract and Combine State, County, City

Minor Business Rule

Object Name: N0700025

Parent DLL: CPAY

Location: Client/Server

Language: NER

This Function Extracts the State, County and City from the Tax Area (TARA)and
will also combine the State, County and City to create the Tax Area (TARA) depending on the direction 

of the arrows.  It uses the Data Structure D0700025.


 One input is the TARA field (TARA is a 10 byte Alpha, Left Justified)

 The output is the State, County and City (these three are in Numeric format).


 The other input is the State, County and City (these three are in 

  Numeric format). The output is the TARA field (TARA is a 10 byte Alpha, Left

  Justified)

 

 An Error code is also returned if there is an error. 

 The Codes are numeric and are as follows: 

 1 = State error 

 2 = County Error 

 3 = State, County Error 

 4 = City Error

 5 = State, City Error

 6 = County, City Error

 7 = State, County, City Error 

 8 = Tax Area, State, County, City Error (All Fields were passed in)

     (used only if both inputs are used.) 

 

The user can also place the return code in a binary format to see which

field is in error. Example: if the state is in error then the binary value

would be 1. If the city is in error then the binary value would be 10. If County 

is in error, then the binary value would be 100 etc. 

 1 = State error 

 10 = County Error 

 11 = State, County Error 

 100 = City Error

 101 = State, City Error

 110 = County, City Error

 111 = State, County, City Error 


^

Data Structure

D0700025 - DS for TARA Field Extract and Combine WST, WCNT, WCTY

Parameter NameData ItemData TypeReq/OptI/O/Both
szTaxAreaWorkTARAcharOPTNONE

A code that identifies a geographical location and the tax authorities for an employee work site, including employee and employer statutory 
requirements. In the Vertex payroll tax calculation software, the tax area code is synonymous with GeoCode. To determine the valid codes 
for your location, refer to the documentation for the tax calculation software that you are using.

mnWorkStateWSTMATH_NUMERICOPTNONE

Vertex state code identifying the state where the employee works.  REQUIRED.

mnWorkCountyWCNTMATH_NUMERICOPTNONE

Vertex county code identifying where the employee works. Zero fill if you do not need to calculate county taxes.

mnWorkCityWCTYMATH_NUMERICOPTNONE

Vertex city code identifying the city where the employee works. Zero fill if you do not need to calculate city taxes.

mnErrorIndicatorEINDMATH_NUMERICOPTOUTPUT

This is the error indicator associated with this field.  If this indicator (as passed in the indicator array from the interface program) is on then 
this field is in error and will be highlighted.  A value of "00" (blanks) indicates that there is no error indicator associated with this field. This value 
is determined by the Build Prompts function and should not be changed.

Related Functions

None

Related Tables

None