Return Values

The 900-CALC-VERTEX-TAX returns values in the VTX-ERROR-STATUSand VTX-ERROR-MSG fields. For information on these fields see Vertex Quantum Global Variables.

The 900-CALC-VERTEX-TAX routine also returns values in the following fields in the VTX-TAX-RESULT structure.

Field Description
The signed, 10-character numeric value (including 3 decimal spaces) that indicates the total tax, sum of return values from VTX-STATE-LOCAL.
VTX-TRANS-STATUS-CD A one-character numeric code that determines hether taxes were collected for a jurisdiction other than the taxing jurisdiction.
VTX-TO-JURIS-RETURN-CD A one-character numeric code that returns the level of the GeoCode (state, city, or none) for the ship-to location.
VTX-FROM-JURIS-RETURN-CD A one-character numeric code that returns the level of the GeoCode (state, city, or none) for the ship-from location.
VTX-STATE-LOCAL Occurs 4 times (state, county, city, district).
VTX-LOCAL-ADDITION Occurs 3 times (county, city, district).

State and Local Tax Variable Structure

The following table shows the fields returned in the VTX-STATE-LOCAL structure.

Field Description
VTX-STLOC-TAXBLTY-FLAG The one-character, alphanumeric code that determines whether there is tax liability in the jurisdiction. Currently returns only 0, tax calculation process determines tax ability.
VTX-STLOC-TAX-TYPE The one-character, alphanumeric code that indicates the type of tax collected for jurisdiction. Currently returns only 1, tax calculation process determines tax type.
VTX-STLOC-TAX-INCLUDED-FLAG The one-character, alphanumeric code that indicates whether the tax amount is included in the extended amount (used for Canadian GST transactions). Currently returns only 0, tax amount not included in extended amount.
VTX-STLOC-EXEMPT-REASON-CD The one-character, alphanumeric code identifying the type of exemption. Currently returns only 0.
VTX-STLOC-EXEMPT-AMOUNT The signed, 12-character (with 2 decimal places) numeric value for the dollar amount exempt from state and local taxes.
VTX-STLOC-NON-TAX-REASON-CD The one-character, alphanumeric code that identifies the type of nontaxable transaction. Currently returns only 0.
VTX-STLOC-NON-TAX-AMOUNT The signed, 12-character (with 2 decimal places) numeric value for the nontaxable dollar amount.
VTX-STLOC-RATE The signed, 7-character numeric value for the jurisdiction's tax rate or a user-supplied tax rate.
VTX-STLOC-RATE-DATE The signed, 8-character numeric value for the effective date of the jurisdiction tax rate in CCYYMMDD format.
VTX-STLOC-TAX-AMOUNT The signed, 12-character (with 2 decimal places) numeric value for the amount subject to tax.
VTX-STLOC-TAX The signed, 12-character (with 2 decimal places) numeric value for the tax amount.
VTX-STLOC-DISTRICT-FLAG The one-character, alphanumeric code that determines whether the district tax, if any, is for the city or the county. Currently returns only 0, no city or county level district tax.

Local Jurisdiction Tax Structure

The following table shows the fields returned in the VTX-LOCAL-ADDITION structure.

Field Definition
VTX-LOCADD-TAXBLTY-FLAG

The two-character, alphanumeric code that indicates whether there is tax liability in the jurisdiction.

00 = Tax calculation process determines tax ability

01 = Taxable

02 = Nontaxable

03 = Exempt

04 = Collect Tax In window-defined taxable situation

05 = Collect Tax In window-defined nontaxable situation

06 = Jurisdiction Exceptions window-defined taxable situation

07 = Jurisdiction Exceptions window-defined nontaxable situation

08 = GeoCode overrides used

09 = Product Exceptions window-defined taxable situation

10 = Product Exceptions window-defined nontaxable situation

11 = Product Exceptions window overrides used

12 = Customer Exceptions window-defined taxable situation

13 = Customer Exceptions window-defined nontaxable situation

14 = Customer Exceptions window overrides used

15 = Locations window-defined taxable situation

16 = Locations window-defined nontaxable situation

17 = Tax ability undefined

VTX-LOCADD-TAX-TYPE

The two-character, alphanumeric code that identifies type of tax for jurisdiction.

00 = No tax type

01 = Tax calculation process should determine tax type

02 = Sales tax type

03 = Use tax type

04 = Rental or lease tax type

05 = Service tax type

06 = Override sales tax type

07 = Override use tax type

08 = Override rental or lease tax type

09 = Override service tax type

10 = Exempt sales transaction

11 = Exempt use transaction

12 = Exempt rental or lease transaction

13 = Exempt service transaction

14 = Nontaxable sales transaction

15 = Nontaxable use transaction

16 = Nontaxable rental or lease transaction

17 = Nontaxable service transaction

18 = Jurisdiction imposes no sales tax

19 = Jurisdiction imposes no use tax

20 = Jurisdiction imposes no rental or lease tax

21 = Jurisdiction imposes no service tax

22 = Invalid jurisdiction

VTX-LOCADD-TAX-INCLUDED-FLAG

The one-character, alphanumeric code that indicates whether tax amount is included in extended amount. (Used for Canadian GST transactions.)

0 = Tax amount not included in extended amount

1 = Tax amount included in extended amount

VTX-LOCADD-EXEMPT-REASON-CD

The one-character, alphanumeric code that identifies exemption type

* (asterisk) = Transaction is exempt

9 = Transaction is exempt because the jurisdiction is an APO/FPO

0 = Nonexempt

VTX-LOCADD-EXEMPT-AMOUNT The signed, 12-character (with 2 decimal places) numeric value for the dollar amount exempt from taxes
VTX-LOCADD-NON-TAX-REASON-CD

The one-character, alphanumeric code that identifies the type of nontaxable transaction

* (asterisk) = Transaction is nontaxable and a nontaxable reason code was not supplied

0 = Transaction is taxable or exempt

VTX-LOCADD-NON-TAX-AMOUNT The signed, 12-character (with 2 decimal places) numeric value for the nontaxable amount.
VTX-LOCADD-RATE The signed, 12-character (with 2 decimal places) numeric value for the jurisdiction tax rate.
VTX-LOCADD-RATE-DATE The signed, 8-character numeric value for the effective date of the jurisdiction tax rate in CCYYMMDD format
VTX-LOCADD-TAX-AMOUNT The signed, 12-character (with 2 decimal places) numeric value for the amount subject to tax.
VTX-LOCADD-TAX The signed, 12-character (with 2 decimal places) numeric value for the tax amount.
VTX-LOCADD-TAXED-GEO-FLAG

The one-character, alphanumeric code that identifies the taxing jurisdiction

0 = No taxing jurisdiction exists

1 = Tax calculation process should determine taxing jurisdiction

2 = Ship-to location

3 = Ship-from location

4 = Order-acceptance location

VTX-LOCADD-DISTRICT-FLAG

The one-character, alphanumeric code that indicates whether any district tax is collected and at what jurisdiction level

0 = No city- or county-level district task

1 = City-level district tax applies

2 = County level district tax applies