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
^
D0700025 - DS for TARA Field Extract and Combine WST, WCNT, WCTY
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szTaxAreaWork | TARA | char | OPT | NONE |
A code that identifies a geographical location and the tax authorities for an employee work site, including employee and employer statutory
| ||||
mnWorkState | WST | MATH_NUMERIC | OPT | NONE |
Vertex state code identifying the state where the employee works. REQUIRED. | ||||
mnWorkCounty | WCNT | MATH_NUMERIC | OPT | NONE |
Vertex county code identifying where the employee works. Zero fill if you do not need to calculate county taxes. | ||||
mnWorkCity | WCTY | MATH_NUMERIC | OPT | NONE |
Vertex city code identifying the city where the employee works. Zero fill if you do not need to calculate city taxes. | ||||
mnErrorIndicator | EIND | MATH_NUMERIC | OPT | OUTPUT |
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
|
None |
None |