OEORDDISC – Order Discount

System
Billing (BL)
Prefix
OOD
Primary key
COMPANY, ORD-DISC-CODE, CURRENCY-CODE
Fields
9
Updated by
0 programs
Referenced by
0 programs

OEORDDISC is the Order Discount table in Lawson Billing (prefix OOD). It is indexed by COMPANY, ORD-DISC-CODE, CURRENCY-CODE (OODSET1). It is related 1:1 to CUCODES, GLCHARTDTL, GLMASTER, GLSYSTEM and OECOMPANY. The table has 9 fields, 1 index and 5 documented relations.

About OEORDDISC

This file stores the order discounts that have been assessed. Order discounts are set up in the Lawson Order Entry system and are placed onto the customer master accounts indicating that those customers will have the percentage associated with the order discount code discounted from their orders.

Fields (9)

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

Field / columnTypeDescription & valuesUpdated by
OOD-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.
OOD-ORD-DISC-CODE PK
ORD_DISC_CODE
Alpha 4This order discount code is user defined and is designed to be added to the customer master accounts indicating which customers are to be affected by the discount rules tied to the code. The discounts are assessed on the order amount as a whole.
OOD-CURRENCY-CODE PK
CURRENCY_CODE
Alpha 5This is the currency code the system will use when assessing the order discount. The discount must use the same currency code as the order.
OOD-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)The description explaining the order discount code.
OOD-ACCT-UNIT
ACCT_UNIT
Alpha 15The general ledger account unit that will be debited when an order discount is created.
OOD-ACCOUNT
ACCOUNT
Numeric 6General ledger account number debited when the discount is calculated.
OOD-SUB-ACCT
SUB_ACCT
Numeric 4General ledger subaccount number debited when the discount is calculated.
OOD-DOLLAR-LIMIT
DOLLAR_LIMIT
Numeric 11 Occurs 6 Times ×6Amount indicating how much the order amount should be before the associated discount is assessed.
OOD-PCT
PCT
Percent 5.2 (Percent) Occurs 6 Times ×6The order discount percentage to be used when the order dollar amount is exceeded.

Indexes (1)

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

IndexKeysFlagsConditionUsed in
OODSET1COMPANY, ORD-DISC-CODE, CURRENCY-CODEPrimaryAR08.1, AR10.1, AR501, AR550, WH20.2, WH20.7

Relations

One to one (5) — lookups and parents

RelationTableRulesConditionField map
CucodesCUCODESRequiredWhen OOD-CURRENCY-CODE != SpacesOOD-CURRENCY-CODECUC-CURRENCY-CODE
GlchartdtlGLCHARTDTLNot RequiredGLS-CHART-NAMEGDT-CHART-NAME, GLM-SUMM-ACCT-IDGDT-SUMRY-ACCT-ID, OOD-ACCOUNTGDT-ACCOUNT, OOD-SUB-ACCTGDT-SUB-ACCOUNT
GlmasterGLMASTERRequiredOOD-COMPANYGLM-COMPANY, OOD-ACCT-UNITGLM-ACCT-UNIT, OOD-ACCOUNTGLM-ACCOUNT, OOD-SUB-ACCTGLM-SUB-ACCOUNT
GlsystemGLSYSTEMRequiredOOD-COMPANYGLS-COMPANY
OecompanyOECOMPANYRequiredOOD-COMPANYOEC-COMPANY

Programs

No Lawson programs are documented as updating or referencing this table.