Functional Description
Purpose
This function provides a "one-step" method of retrieving tax details. It simply calls two existing
business functions "Calculate and Validate Tax Amounts" (X00TAX) and "Calculate Tax Authority Tax
Amounts" (B0000019), and returns the tax and discount details.
Note:1. The Payment Terms Code and Discount Percentage parameters are mutually exclusive. If both
are passed, only the Payment Terms Code will be applied.
2. The Goods Value parameter is the "gross amount" as opposed to the Amount Taxable parameter
which is net. If one is passed, the other will be calculated and returned. If both are passed, tax
is calculated on the Amount Taxable (as normal) and Gross Amount is ignored.
3. The Item Number Used Flag indicates whether the tax information was retrieved at item
level. It will contain '1' or '0', where '1' indicates item-level taxes.
Technical Specification
2.4Processing
If any errors occur during this business function, return a 'Y' in the error code parameter ERRC.
2.4.1Call CalculateValidateTaxAmounts (X00TAX):
Pass to this business function the following input parameters:
AG(Amount Gross) - NOT Goods Value as below
ATXA(Amount Taxable)
TXA1(Tax Area1)
EXR1(Tax Explanation Code1)
TRDJ(Order Date)
PTC(Payment Terms)
DCP(Discount Percentage)
CO(Company)
EV01(System Code)
ITM(IdentifierShortItem)
PQOR(Quantity Supplied)
/*AG(Goods Value)*/
and receive:
AG(Amount Gross)
ATXA(Amount Taxable)
STAM(Amount of Tax)
ADSC(Amount of Discount)
ATXN(Amount Tax Exempt)
UPRC(Unrounded Tax Amount)
EV02(Summary/Detail Flag)
EV03(Item Number Used Flag)
2.4.2Call CalcTaxAuthTaxAmts (B0000019):
Pass to this business function the following input parameters:
TXA1(Tax Area1)
TRDJ(Order Date)
ITM(IdentifierShortItem)
EXR1(Tax Explanation Code1)
ATXA(Amount Taxable)
STAM(Amount of Tax) - output from X00TAX.
and receive:
TXR1(Tax Rate 1)
TXR2(Tax Rate 2)
TXR3(Tax Rate 3)
TXR4(Tax Rate 4)
TXR5(Tax Rate 5)
TA1(Tax Authority 1)
TA2(Tax Authority 2)
TA3(Tax Authority 3)
TA4(Tax Authority 4)
TA5(Tax Authority 5)
STA1(Tax Authority Amount 1)
STA2(Tax Authority Amount 2)
STA3(Tax Authority Amount 3)
STA4(Tax Authority Amount 4)
STA5(Tax Authority Amount 5)
TC2(Tax Calc Method 2 - Tax Compound flag)
TT3(Tax Type 3 - VAT Recoverable flag 3)
TT4(Tax Type 4 - VAT Recoverable flag 4)
TT5(Tax Type 5 - VAT Recoverable flag 5)
TAXA(Tax Area Description)
FVTY(Factor Value Type)
GL01 (GL Class/Tax Area 1)10/9/95
GL02(GL Class/Tax Area 2)10/9/95
GL03(GL Class/Tax Area 3)10/9/95
GL04 (GL Class/Tax Area 4)10/9/95
GL05(GL Class/Tax Area 5)10/9/95
MATH10(Non recoverable GST amount) 10/10/95
2.4.3Calculate the Total Tax Rate:
Calculate the Total Tax Rate as follows:
Note: Tax Explanation Code (EXR1) is a 2-byte field.
If the 1st byte of EXR1 is "C" or "B" or EXR1 = "V+"
Compound Tax Flag (TC2) = 'Y'
end
'Total Tax Rate' (TRAT) = TXR1 + TXR2 + TXR3 (if TT3 is not 'R') + TXR4 (if TT4 is not 'R') + TXR5
(If TT5 is not 'R')
If Compound Tax Flag (TC2) = 'Y'
as a percentage of TXR1.
Total Tax Rate (TRAT) = TXR1 + TXR2 + TXR3 + TXR4 + TXR5
For example:
assume the five tax rates (TXR1-5) returned from B0000019 are 3.5, 3.8, 2.1, 1.1and 0.4, and the Tax
Type field TT4 is 'R'.
EXR1 TC2 (passed back TC2 (after above Total Area
from B0000019) algorithm) Tax Rate
S blank blank = 10.9 (3.5 + 3.8
+ 2.1 + 1.1 + 0.4)
CA blank blank = 9.8 (3.5 + 3.8 +
2.1 + 0.4)
S Y blank = 10.9 (3.5 + 3.8
+ 2.1 + 1.1 + 0.4)
CX Y Y = 10.021 ((3.5 +
3.8 + 2.1 + 0.4) +
((3.8 + 2.1 + 0.4)
/ 100 * 3.5)
V+ blank Y = 10.021 (same as
above)
V+ Y Y = 10.021 (same as
above)
D4001090 - Tax Calculator
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szTaxArea1 | TXA1 | char | NONE | NONE |
A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter
| ||||
szTaxExplanationCode1 | EXR1 | char | NONE | NONE |
A hard-coded user defined code (00/EX) that controls the algorithm that the system uses to calculate tax and G/L distribution amounts. The
| ||||
jdTransactionDate | TRDJ | JDEDATE | NONE | NONE |
The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing. | ||||
szPaymentTermsCode1 | PTC | char | NONE | NONE |
A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date.
| ||||
szCompany | CO | char | NONE | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
mnUnitsPrimaryQtyOrder | PQOR | MATH_NUMERIC | NONE | NONE |
The quantity ordered by the customer expressed in the primary stocking unit of measure. | ||||
mnAmountTaxable | ATXA | MATH_NUMERIC | NONE | NONE |
The amount on which taxes are assessed. | ||||
mnAmtTax2 | STAM | MATH_NUMERIC | NONE | NONE |
The amount assessed and payable to tax authorities. It is the total of the VAT, use, and sales taxes (PST). | ||||
mnAmtDiscountAvailable | ADSC | MATH_NUMERIC | NONE | NONE |
The amount of the invoice or voucher pay item that is eligible to be subtracted from the gross amount when the transaction is paid. The
| ||||
mnTaxRate1 | TXR1 | MATH_NUMERIC | NONE | NONE |
A number that identifies the percentage of tax that should be assessed or paid to the corresponding tax authority, based on the tax area.
| ||||
mnTaxRate2 | TXR2 | MATH_NUMERIC | NONE | NONE |
A number that identifies the percentage of tax that should be assessed or paid to the corresponding tax authority, based on the tax area.
| ||||
mnTaxRate3 | TXR3 | MATH_NUMERIC | NONE | NONE |
A number that identifies the percentage of tax that should be assessed or paid to the corresponding tax authority, based on the tax area.
| ||||
mnTaxRate4 | TXR4 | MATH_NUMERIC | NONE | NONE |
A number that identifies the percentage of tax that should be assessed or paid to the corresponding tax authority, based on the tax area.
| ||||
mnTaxRate5 | TXR5 | MATH_NUMERIC | NONE | NONE |
A number that identifies the percentage of tax that should be assessed or paid to the corresponding tax authority, based on the tax area.
| ||||
mnTaxAuthority1A | TA1 | MATH_NUMERIC | NONE | NONE |
The address book number of the tax agency that has jurisdiction in the tax area. You pay and report sales, use, or VAT taxes to this
| ||||
mnTaxAuthority2 | TA2 | MATH_NUMERIC | NONE | NONE |
The address book number of the tax agency that has jurisdiction in the tax area. You pay and report sales, use, or VAT taxes to this
| ||||
mnTaxAuthority3 | TA3 | MATH_NUMERIC | NONE | NONE |
The address book number of the tax agency that has jurisdiction in the tax area. This is the agency to whom you pay and report sales, use,
| ||||
mnTaxAuthority4 | TA4 | MATH_NUMERIC | NONE | NONE |
The address book number of the tax agency that has jurisdiction in the tax area. You pay and report sales, use, or VAT taxes to this
| ||||
mnTaxAuthority5 | TA5 | MATH_NUMERIC | NONE | NONE |
The address book number of the tax agency that has jurisdiction in the tax area. You pay and report sales, use, or VAT taxes to this
| ||||
mnAmtSalesTaxTaxAuth1 | STA1 | MATH_NUMERIC | NONE | NONE |
Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the first of five
| ||||
mnAmtSalesTaxTaxAuth2 | STA2 | MATH_NUMERIC | NONE | NONE |
Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the second of five
| ||||
mnAmtSalesTaxTaxAuth3 | STA3 | MATH_NUMERIC | NONE | NONE |
Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the third of five
| ||||
mnAmtSaleStaxTaxAuth4 | STA4 | MATH_NUMERIC | NONE | NONE |
Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the fourth of five
| ||||
mnAmtSalesTaxTaxAuth5 | STA5 | MATH_NUMERIC | NONE | NONE |
Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the fifth of five possible
| ||||
cTaxCalcMethod2 | TC2 | char | NONE | NONE |
An option that is used in Canada to specify whether to calculate PST tax after GST has been added to the product value. Valid settings
| ||||
cTaxType3 | TT3 | char | NONE | NONE |
An option that indicates the percent of VAT that is not recoverable. You enter the nonrecoverable percentage in the Tax Rate field to the left
| ||||
cTaxType4 | TT4 | char | NONE | NONE |
An option that indicates the percent of VAT that is not recoverable. You enter the nonrecoverable percentage in the Tax Rate field to the left
| ||||
cTaxType5 | TT5 | char | NONE | NONE |
An option that indicates the percent of VAT that is not recoverable. You enter the nonrecoverable percentage in the Tax Rate field to the left
| ||||
szDescriptionTaxArea | TAXA | char | NONE | NONE |
Text that names or describes the tax rate/area. You can use this 30-character field, for example, to identify a zip code for a tax area or to
| ||||
mnTotalAreaTaxRate | TRAT | MATH_NUMERIC | NONE | NONE |
A number that indicates the total percentage of taxes for the transaction or tax rate area. | ||||
cFactorValueType | FVTY | char | NONE | NONE |
A code that indicates whether the factor value is a multiplier (%) or an additional/deductible cash amount ($) when applied to an order's
| ||||
cErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
mnDiscountPercentage | DCP | MATH_NUMERIC | NONE | NONE |
The percent of the total invoice or voucher that you will discount if it is paid within the discount period. You enter the discount percent as a
| ||||
cSystemCode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnGoodsValue | AG | MATH_NUMERIC | NONE | NONE |
A value that specifies the total amount of the invoice or voucher pay item. The gross amount might include the tax amount, depending on
| ||||
mnAmountTaxExempt | ATXN | MATH_NUMERIC | NONE | NONE |
The amount upon which taxes are not assessed. This is the portion of the transaction not subject to sales, use, or VAT taxes because the
| ||||
mnUnroundedTaxAmt | UPRC | MATH_NUMERIC | NONE | NONE |
The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table
| ||||
szGLClassByTaxArea1 | GL01 | char | NONE | NONE |
A code that indicates how to locate the tax account for general ledger entries. This field points to automatic accounting instructions (AAIs)
| ||||
szGLClassByTaxArea2 | GL02 | char | NONE | NONE |
Code that indicates how to locate the tax account for general ledger entries.
This field points to automatic accounting instructions (AAIs) that,
| ||||
szGLClassByTaxArea3 | GL03 | char | NONE | NONE |
Code that indicates how to locate the tax account for general ledger entries.
This field points to automatic accounting instructions (AAIs) that,
| ||||
szGLClassByTaxArea4 | GL04 | char | NONE | NONE |
Code that indicates how to locate the tax account for general ledger entries.
This field points to automatic accounting instructions (AAIs) that,
| ||||
szGLClassByTaxArea5 | GL05 | char | NONE | NONE |
Code that indicates how to locate the tax account for general ledger entries.
This field points to automatic accounting instructions (AAIs) that,
| ||||
mnNonRecoverGST | MATH10 | MATH_NUMERIC | NONE | NONE |
Event point for Math Numeric. | ||||
cSummaryDetailFlag | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cItemNumberUsedFlag | EV03 | char | NONE | NONE |
A radio button that specifies the level at which trace/track result is to be displayed. Select the Detail to display all transactions except IB, IX,
| ||||
mnPSTTaxAmt | ECST | MATH_NUMERIC | NONE | NONE |
For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the
| ||||
mnJobnumberA | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
cIsVertexActive | VVTX | char | OPT | NONE |
This flag determines whether to use the Vertex Tax Compliance system for tax calculations. Values are:
Y
Use Vertex system to calculate
| ||||
szAuthority1Desc | DL01 | char | OPT | NONE |
A user defined name or remark. | ||||
szAuthority3Desc | DL01 | char | OPT | NONE |
A user defined name or remark. | ||||
szAuthority2Desc | DL01 | char | OPT | NONE |
A user defined name or remark. | ||||
szAuthority5Desc | DL01 | char | OPT | NONE |
A user defined name or remark. | ||||
szAuthority4Desc | DL01 | char | OPT | NONE |
A user defined name or remark. | ||||
mnDocumentOrderInvoiceE | DOCO | MATH_NUMERIC | OPT | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szOrderType | DCTO | char | OPT | NONE |
A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has
| ||||
szCompanyKeyOrderNo | KCOO | char | OPT | NONE |
A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a
| ||||
szOrderSuffix | SFXO | char | OPT | NONE |
In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies
| ||||
mnLineNumber | LNID | MATH_NUMERIC | OPT | NONE |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
cSuppressDiscountCalculation | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
mnNonRecoverableTaxAmt | NRTA | MATH_NUMERIC | OPT | NONE |
The portion of the tax amount for which you cannot take a credit. | ||||
mnAmountDistribute | AG | MATH_NUMERIC | OPT | NONE |
A value that specifies the total amount of the invoice or voucher pay item. The gross amount might include the tax amount, depending on
|
B0000019 Calculate Tax Authority Tax Amts | ||||
X00TAX Calculate and Edit Tax Amounts |
None |