OEINVCTAX – Invoice Taxes

System
Billing (BL)
Prefix
OIT
Primary key
COMPANY, INVC-PREFIX, INVC-NUMBER, LINE-NBR, SEQ, TAX-CODE, TAX-LEVEL
Fields
17
Updated by
1 program
Referenced by
1 program

OEINVCTAX is the Invoice Taxes table in Lawson Billing (prefix OIT). It is indexed by COMPANY, INVC-PREFIX, INVC-NUMBER, LINE-NBR, SEQ, TAX-CODE, TAX-LEVEL (OITSET1); alternate indexes: OITSET2, OITSET3 and OITSET4. It is related 1:1 to OECOMPANY, OEINVCLINE, OEINVCMISC, OEINVOICE and TXTAXCODE. It is updated by WH20.7 and referenced by TX101. The table has 17 fields, 4 indexes and 5 documented relations.

About OEINVCTAX

This file stores the tax records assessed when processing an order or invoice. These records store the invoice and invoice line being taxed, the tax code used, and the rate of the tax, as well as the amount of the tax in both company base currency and billing currency.

Fields (17)

Column = COBOL field name without the OIT- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
OIT-COMPANY PK
COMPANY
Numeric 4Identifies the AP company if the resource type = V. Identifies the HR company if the resource type = E. It is blank for type A, P or Q resources.WH20.7
OIT-INVC-PREFIX PK
INVC_PREFIX
Alpha 2This field contains the invoice prefix that is assigned from either the company or process level, depending on the invoice-level option chosen.WH20.7
OIT-INVC-NUMBER PK
INVC_NUMBER
Numeric 8This field contains the invoice number assigned by the system. Invoice numbers are assigned at the company or process level, depending on an invoice-level option on the company file.WH20.7
OIT-LINE-NBR PK
LINE_NBR
Numeric 6Displays the system sequence number indicating which line on the invoice the tax is being calculated for.WH20.7
OIT-SEQ PK
SEQ
Numeric 3The tax record sequence number.WH20.7
OIT-PROD-TAX-CAT
PROD_TAX_CAT
Alpha 15A classification of items for determining taxes using the Vertex system in Order Entry or the cash receipts programs in Cash Management.WH20.7
OIT-TAX-ID
TAX_ID
Alpha 20This field contains the tax ID or registration number.WH20.7
OIT-TAX-CODE PK
TAX_CODE
Alpha 10A user-defined tax code representing the tax authorities this ship-to pays sales tax to. Must be a valid tax code record.WH20.7
OIT-TAX-RATE
TAX_RATE
Percent 7.5 (Percent)The tax rate.WH20.7
OIT-TAX-AMT-CURR
TAX_AMT_CURR
Signed 18.2This is the tax amount in billing currency.WH20.7
OIT-TAX-AMT-BSE
TAX_AMT_BSE
Signed 18.2This is the tax amount in company base currency.WH20.7
OIT-TAX-ACCT-UNIT
TAX_ACCT_UNIT
Alpha 15This is the general ledger account unit that will be credited when the invoice tax is posted to General Ledger. This will be debited for return credit memos.WH20.7
OIT-TAX-ACCOUNT
TAX_ACCOUNT
Numeric 6This is the general ledger account number that will be credited when the invoice tax is posted to General Ledger. This will be debited for return credit memos.WH20.7
OIT-TAX-SUB-ACCT
TAX_SUB_ACCT
Numeric 4This is the general ledger subaccount number that will be credited when the invoice tax is posted to General Ledger. This will be debited for return credit memos.WH20.7
OIT-TRAN-TAXABLE
TRAN_TAXABLE
Signed 18.2WH20.7
OIT-BASE-TAXABLE
BASE_TAXABLE
Signed 18.2WH20.7
OIT-TAX-LEVEL PK
TAX_LEVEL
Alpha 1
  • 1 State
  • 2 County
  • 3 City
  • 4 District
  • 5 GST
  • 6 PST
WH20.7

Indexes (4)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
OITSET1COMPANY, INVC-PREFIX, INVC-NUMBER, LINE-NBR, SEQ, TAX-CODE, TAX-LEVELPrimaryTX101, WH20.7
OITSET2COMPANY, INVC-PREFIX, INVC-NUMBER, TAX-CODE, LINE-NBR, SEQ, TAX-LEVEL
OITSET3COMPANY, INVC-PREFIX, INVC-NUMBER, LINE-NBR, TAX-CODE, SEQ, TAX-LEVEL
OITSET4COMPANY, INVC-PREFIX, INVC-NUMBER, TAX-CODE, PROD-TAX-CAT, LINE-NBR, SEQ, TAX-LEVEL

Relations

One to one (5) — lookups and parents

RelationTableRulesConditionField map
OecompanyOECOMPANYRequiredOIT-COMPANYOEC-COMPANY (OECSET1)
OeinvclineOEINVCLINERequiredWhen OIT-LINE-NBR > Zeroes And OIT-SEQ = ZeroesOIT-COMPANYOIL-COMPANY, OIT-INVC-PREFIXOIL-INVC-PREFIX, OIT-INVC-NUMBEROIL-INVC-NUMBER, OIT-LINE-NBROIL-LINE-NBR
OeinvcmiscOEINVCMISCRequiredWhen OIT-LINE-NBR > Zeroes And OIT-SEQ > ZeroesOIT-COMPANYOIM-COMPANY, OIT-INVC-PREFIXOIM-INVC-PREFIX, OIT-INVC-NUMBEROIM-INVC-NUMBER, OIT-LINE-NBROIM-LINE-NBR, OIT-SEQOIM-SEQ
OeinvoiceOEINVOICERequiredOIT-COMPANYOEI-COMPANY, OIT-INVC-PREFIXOEI-INVC-PREFIX, OIT-INVC-NUMBEROEI-INVC-NUMBER
TxtaxcodeTXTAXCODERequiredOIT-COMPANYTAC-COMPANY, OIT-TAX-CODETAC-TAX-CODE

Programs

Updated by (1)

Referenced by (1)