OEINVCMISC – Invoice Miscellaneous Charges

System
Billing (BL)
Prefix
OIM
Primary key
COMPANY, INVC-PREFIX, INVC-NUMBER, LINE-NBR, SEQ
Fields
53
Updated by
1 program
Referenced by
1 program

OEINVCMISC is the Invoice Miscellaneous Charges table in Lawson Billing (prefix OIM). It is indexed by COMPANY, INVC-PREFIX, INVC-NUMBER, LINE-NBR, SEQ (OIMSET1); alternate indexes: OIMSET2, OIMSET3, OIMSET4 and OIMSET5. It is related 1:1 to BLRICUST, GLMASTER, OECOMPANY, OEINVCLINE, OEINVOICE, OEINVSGBLK and OEMISC and 1:M to OEDIST and OEINVCTAX. It is updated by WH20.7 and referenced by TX101. The table has 53 fields, 5 indexes and 12 documented relations.

About OEINVCMISC

This file stores the add-on charges that are related to a specific invoice or invoice line.

Fields (53)

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

Field / columnTypeDescription & valuesUpdated by
OIM-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
OIM-INVC-PREFIX PK
INVC_PREFIX
Alpha 2Invoice prefix is assigned from either the company or process level depending on the invoice level option chosen when setting up the company in the Billing system.WH20.7
OIM-INVC-NUMBER PK
INVC_NUMBER
Numeric 8Invoice number assigned by the system. Invoice numbers are assigned at the company or process level, depending on the option chosen when setting up the company in the Billing system.WH20.7
OIM-LINE-NBR PK
LINE_NBR
Numeric 6This indicates the line of the invoice the add-on charge is tied to if anything is entered here. If blank, the add-on charge was added at the invoice header level.WH20.7
OIM-SEQ PK
SEQ
Numeric 3The sequence number identifying the last add-on charge record tied to the invoice line or the invoice itself.WH20.7
OIM-MISC
MISC
Alpha 16The add-on charge code used. Define add-on charges using BL09.1 (Add-on Charges).WH20.7
OIM-TAX-EXEMPT-CD
TAX_EXEMPT_CD
Alpha 1Indicates whether or not the add-on charge is to be included in tax calculations. If any one of the following are tax exempt, the exempt flag will default onto this field: customer ship-to, customer master, or add-on charge code.
  • E Tax exempt.
  • T Taxable.
WH20.7
OIM-TAX-CODE
TAX_CODE
Alpha 10A user-defined code representing the tax authorities this ship-to pays sales tax to. Must be a valid tax code set up on TX01.1 (Tax Code Master).WH20.7
OIM-ENT-TAXABLE
ENT_TAXABLE
Signed 18.2The taxable amount of the add-on charge in original currency.WH20.7
OIM-TAXABLE-BSE
TAXABLE_BSE
Signed 18.2Taxable amount of the add-on charge in company base currency.WH20.7
OIM-TAX-AMT-CURR
TAX_AMT_CURR
Signed 18.2Tax amount for the add-on charge in billing currency.WH20.7
OIM-TAX-AMT-BSE
TAX_AMT_BSE
Signed 18.2Tax amount for the add-on charge in company base currency.WH20.7
OIM-CHARGE-TYPE
CHARGE_TYPE
Numeric 1Indicates whether the add-on charge is calculated via lump sum, unit price, or percentage.
  • 1 Lump Sum
  • 2 Unit Price
  • 3 Percentage
WH20.7
OIM-ENT-UNIT-PRC
ENT_UNIT_PRC
Signed 18.5Price of add-on charge in original currency. Defaults from the add-on charge set up on BL09.1 (Add-on Charges).WH20.7
OIM-UNIT-PRICE
UNIT_PRICE
Signed 18.5Unit price as defaulting from BL09.1 (Add-on Charges) in company base currency.WH20.7
OIM-PRICE-PCT
PRICE_PCT
Percent 5.3 (Percent)Price percent. This is the percent applied to price to arrive at the add-on charge if the add-on charge type is defined as a percentage pricing charge on BL09.1 (Add-on Charges).WH20.7
OIM-ENT-PRICE
ENT_PRICE
Signed 18.2Optionally enter the price of the add-on charge in original billing currency.WH20.7
OIM-PRICE
PRICE
Signed 18.2Price of the add-on charge as defaulting from BL09.1 (Add-on Charges) in company base currency.WH20.7
OIM-UNIT-COST
UNIT_COST
Signed 18.5The unit cost of the add-on charge in base currency.WH20.7
OIM-COST-PCT
COST_PCT
Percent 5.3 (Percent)The cost percent. The percent to apply to the line or invoice extended net amount to arrive at the add-on charge cost.WH20.7
OIM-COST
COST
Signed 18.5The flat monetary amount of cost of the add-on charge as it defaults from BL09.1 (Add-on Charges) in company base currency.WH20.7
OIM-ALLOC-DISC
ALLOC_DISC
Signed 18.2Amount of the order discount or add-on discount allocated to this add-on charge.WH20.7
OIM-UPD-SA-FL
UPD_SA_FL
Alpha 1This field identifies whether or not the Sales Analysis system is to be updated.WH20.7
OIM-ORD-DISC-FL
ORD_DISC_FL
Alpha 1Order discount flag indicates whether the charge is eligible to be included when the system calculates the order-level discount.
  • N not discountable
  • Y discountable
WH20.7
OIM-SLS-ACCT-UNIT
SLS_ACCT_UNIT
Alpha 15Sales account unit to be credited or debited for this add-on charge.WH20.7
OIM-SLS-ACCOUNT
SLS_ACCOUNT
Numeric 6Sales account number to be debited or credited for this add-on charge.WH20.7
OIM-SLS-SUB-ACCT
SLS_SUB_ACCT
Numeric 4Sales subaccount number to be debited or credited for this add-on charge.WH20.7
OIM-OFF-ACCT-UNIT
OFF_ACCT_UNIT
Alpha 15This cost of goods offset account unit will be credited for nonstock and special items ordered that have a cost associated with them. This account can default from the sales class for nonstock items and will default from the process level for special items.WH20.7
OIM-OFF-ACCOUNT
OFF_ACCOUNT
Numeric 6This cost of goods offset account number will be credited for nonstock and special items that have a cost associated with them. This account can default from the sales class for nonstock items and will default from the process level for special items with associated costs.WH20.7
OIM-OFF-SUB-ACCT
OFF_SUB_ACCT
Numeric 4This cost of goods offset subaccount will be credited for nonstock and special items ordered that have a cost associated with them. This account can default from the sales class for nonstock items and will default from the process level for special items with associated costs.WH20.7
OIM-CGS-ACCT-UNIT
CGS_ACCT_UNIT
Alpha 15The cost of goods sold account unit is debited for nonstock or special items. Defaults from the process level for special orders and defaults from the sales class for nonstock items.WH20.7
OIM-CGS-ACCOUNT
CGS_ACCOUNT
Numeric 6The cost of goods sold account number is debited for nonstock or special items. This account defaults from the process level for special orders and defaults from the sales class for nonstock items.WH20.7
OIM-CGS-SUB-ACCT
CGS_SUB_ACCT
Numeric 4The cost of goods sold subaccount number is debited for nonstock and special items. This will default from the process level for special orders and defaults from the sales class for nonstock items.WH20.7
OIM-ACTIVITY
ACTIVITY
Alpha 15In this file the Activity field is used for revenue (sales) postings whereas the Activity-C field is used for Cost (COGS) postings. Activities are the processes or procedures that produce work. Cost objects (products, services, customers, and so on) are the reasons for performing the activity. Activities and cost object activities are used synonymously in the Activity Management system. Direct costs are posted to activities, and indirect costs are allocated to activities based on activity drivers. Activities are grouped or organized by activity levels. There are two types of activities: "posting allowed" and "summary only." Use posting level activities to budget and maintain all posted transactions. Summary activities or macro activities combine information and balances from lower level activities for reporting and inquiries.WH20.7
OIM-ACCT-CATEGORY
ACCT_CATEGORY
Alpha 5In this file the Acct-Category field is used for revenue (sales) postings whereas the Acct-Categ-C field is used for Cost (COGS) postings. Account categories are groupings of costs, revenues, or a combination of both used for reporting and inquiries for activities in the Activity Management system. All transactions are posted to an account category within an activity. You can assign a specific general ledger account or range of accounts (company, accounting unit, account, and subaccount) that make up the transactions posted to an account category using AC07.1 (Account Assignment). Period-to-date, year-to-date, and life-to-date balances are maintained by account category for activities. Account categories must be assigned to activities before you do any budgeting or transaction processing.WH20.7
OIM-ATN-OBJ-ID
ATN_OBJ_ID
Numeric 12Represents Activity Management system ID for the revenue (sales) Activity. Activities are the processes or procedures that produce work. Cost objects (products, services, customers, and so on) are the reasons for performing the activity. Activities and cost object activities are used synonymously in the Activity Management system. Direct costs are posted to activities, and indirect costs are allocated to activities based on activity drivers. Activities are grouped or organized by activity levels. There are two types of activities: "posting allowed" and "summary only." Use posting level activities to budget and maintain all posted transactions. Summary activities or macro activities combine information and balances from lower level activities for reporting and inquiries.WH20.7
OIM-ACTIVITY-C
ACTIVITY_C
Alpha 15In this file the Activity-C field is used for Cost (COGS) postings whereas the Activity field is used for revenue (sales) postings. Activities are the processes or procedures that produce work. Cost objects (products, services, customers, and so on) are the reasons for performing the activity. Activities and cost object activities are used synonymously in the Activity Management system. Direct costs are posted to activities, and indirect costs are allocated to activities based on activity drivers. Activities are grouped or organized by activity levels. There are two types of activities: "posting allowed" and "summary only." Use posting level activities to budget and maintain all posted transactions. Summary activities or macro activities combine information and balances from lower level activities for reporting and inquiries.WH20.7
OIM-ACCT-CATEG-C
ACCT_CATEG_C
Alpha 5In this file the Acct-Categ-C field is used for Cost (COGS) postings whereas the Acct-Category field is used for revenue (sales) postings. Account categories are groupings of costs, revenues, or a combination of both used for reporting and inquiries for activities in the Activity Management system. All transactions are posted to an account category within an activity. You can assign a specific general ledger account or range of accounts (company, accounting unit, account, and subaccount) that make up the transactions posted to an account category using AC07.1 (Account Assignment). Period-to-date, year-to-date, and life-to-date balances are maintained by account category for activities. Account categories must be assigned to activities before you do any budgeting or transaction processing.WH20.7
OIM-ATN-OBJ-ID-C
ATN_OBJ_ID_C
Numeric 12The system defined object id representing the Activity Management commitment for Cost (COGS).WH20.7
OIM-INVC-PCT-AMT
INVC_PCT_AMT
DerivedAmount billed to the customer if the add-on charge is tied to the invoice header and is a percentage type. In company base currency.
OIM-LINE-PCT-AMT
LINE_PCT_AMT
DerivedAmount billed to the customer if the add-on charge is tied to the invoice line and is a percentage type. In company base currency.
OIM-UNIT-AMOUNT
UNIT_AMOUNT
DerivedAmount to be charged per unit of the item ordered at the line level. The add-on charge amount will be the sum total of the charges per unit.
OIM-CHARGE-AMT
CHARGE_AMT
DerivedFinal calculated amount of the add-on charge.
OIM-CHARGE-CURR
CHARGE_CURR
Signed 18.2Final calculated amount of the add-on charge in billing currency.WH20.7
OIM-CHARGE-BASE
CHARGE_BASE
Signed 18.2Final calculated amount of the add-on charge in company base currency.WH20.7
OIM-COST-BASE
COST_BASE
Signed 18.2Final calculated cost amount of the add-on charge in company base currency.WH20.7
OIM-PROD-TAX-CAT
PROD_TAX_CAT
Alpha 15A classification of items for determining taxes using the VERTEX system in Lawson Order Entry system or the cash receipts programs in the Lawson Cash Ledger system.WH20.7
OIM-PER-UNIT-FL
PER_UNIT_FL
DerivedThis field contains the per unit charge type.
OIM-INVC-PCT-COST
INVC_PCT_COST
DerivedThis field contains the cost if the charge type is a percentage.
OIM-LINE-PCT-COST
LINE_PCT_COST
DerivedThis field contains the percentage that is attached to the line.
OIM-LINE-UNIT-COST
LINE_UNIT_COST
DerivedThis field contains the per unit cost.
OIM-LINE-COST-AMT
LINE_COST_AMT
DerivedThis field determines which cost to display.
OIM-TRACK-TYPE
TRACK_TYPE
Alpha 1" " = Other AOC
  • I Insurance
  • F Freight
  • C Customs Charges
WH20.7

Indexes (5)

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

IndexKeysFlagsConditionUsed in
OIMSET1COMPANY, INVC-PREFIX, INVC-NUMBER, LINE-NBR, SEQPrimaryTX101, WH20.7
OIMSET2ATN-OBJ-IDKeyChange, SubsetWhere ATN-OBJ-ID != Zeroes
OIMSET3ATN-OBJ-ID-CKeyChange, SubsetWhere ATN-OBJ-ID-C != Zeroes
OIMSET4COMPANY, INVC-PREFIX, INVC-NUMBER, TAX-CODE, PROD-TAX-CAT, LINE-NBR, SEQKeyChangeWH20.7
OIMSET5COMPANY, INVC-PREFIX, INVC-NUMBER, SEQ, LINE-NBRWH20.7

Relations

One to one (10) — lookups and parents

RelationTableRulesConditionField map
BlricustBLRICUSTNot RequiredValid When OEI-RECUR-INVOICE != SpacesOIM-COMPANYBRC-COMPANY, OEI-RECUR-INVOICEBRC-RECUR-INVOICE, OEI-CUSTOMERBRC-CUSTOMER
Cogs AccountGLMASTERRequiredWhen OIM-CGS-ACCT-UNIT != Spaces Or OIM-CGS-ACCOUNT != Zeroes Or OIM-CGS-SUB-ACCT != ZeroesOIM-COMPANYGLM-COMPANY, OIM-CGS-ACCT-UNITGLM-ACCT-UNIT, OIM-CGS-ACCOUNTGLM-ACCOUNT, OIM-CGS-SUB-ACCTGLM-SUB-ACCOUNT
OecompanyOECOMPANYRequiredOIM-COMPANYOEC-COMPANY
OecustsrvcBLRICUSTNot RequiredValid When OEI-RECUR-INVOICE != SpacesOIM-COMPANYBRC-COMPANY, OEI-RECUR-INVOICEBRC-RECUR-INVOICE, OEI-CUSTOMERBRC-CUSTOMER
OeinvclineOEINVCLINERequiredWhen OIM-LINE-NBR != ZeroesOIM-COMPANYOIL-COMPANY, OIM-INVC-PREFIXOIL-INVC-PREFIX, OIM-INVC-NUMBEROIL-INVC-NUMBER, OIM-LINE-NBROIL-LINE-NBR
OeinvoiceOEINVOICERequiredOIM-COMPANYOEI-COMPANY, OIM-INVC-PREFIXOEI-INVC-PREFIX, OIM-INVC-NUMBEROEI-INVC-NUMBER
OeinvsgblkOEINVSGBLKNot RequiredOIM-COMPANYOSB-COMPANY, OIM-INVC-PREFIXOSB-INVC-PREFIX, OIM-INVC-NUMBEROSB-INVC-NUMBER, OIM-LINE-NBROSB-LINE-NBR, OIM-SEQOSB-SEQ
OemiscOEMISCRequiredOIM-COMPANYOEM-COMPANY, OIM-MISCOEM-MISC, OEI-CURRENCY-CODEOEM-CURRENCY-CODE
Offset AccountGLMASTERRequiredWhen OIM-OFF-ACCT-UNIT != Spaces Or OIM-OFF-ACCOUNT != Zeroes Or OIM-OFF-SUB-ACCT != ZeroesOIM-COMPANYGLM-COMPANY, OIM-OFF-ACCT-UNITGLM-ACCT-UNIT, OIM-OFF-ACCOUNTGLM-ACCOUNT, OIM-OFF-SUB-ACCTGLM-SUB-ACCOUNT
Sales AccountGLMASTERRequiredWhen OIM-SLS-ACCT-UNIT != Spaces Or OIM-SLS-ACCOUNT != Zeroes Or OIM-SLS-SUB-ACCT != ZeroesOIM-COMPANYGLM-COMPANY, OIM-SLS-ACCT-UNITGLM-ACCT-UNIT, OIM-SLS-ACCOUNTGLM-ACCOUNT, OIM-SLS-SUB-ACCTGLM-SUB-ACCOUNT

One to many (2) — child tables

RelationTableRulesConditionField map
OedistOEDISTValid When OEI-STATUS = 9OIM-COMPANYODI-COMPANY, OIM-INVC-PREFIXODI-INVC-PREFIX, OIM-INVC-NUMBERODI-INVC-NUMBER, ZeroesODI-AUTH-NO, OIM-LINE-NBRODI-LINE-NBR, ODI-ACCT-UNIT, ODI-ACCOUNT, ODI-SUB-ACCOUNT, ODI-SEQ, ODI-POSTING-TYPE
OeinvctaxOEINVCTAXRequiredOIM-COMPANYOIT-COMPANY, OIM-INVC-PREFIXOIT-INVC-PREFIX, OIM-INVC-NUMBEROIT-INVC-NUMBER, OIM-LINE-NBROIT-LINE-NBR, OIM-SEQOIT-SEQ, OIT-TAX-CODE, OIT-TAX-LEVEL

Programs

Updated by (1)

Referenced by (1)