OEPLCLASS – Price List Sales Class

System
Billing (BL)
Prefix
OPC
Primary key
COMPANY, CUSTOMER, LIST-NAME, PROMOTION, SALES-MAJCL, SALES-MINCL
Fields
14
Updated by
0 programs
Referenced by
0 programs

OEPLCLASS is the Price List Sales Class table in Lawson Billing (prefix OPC). It is indexed by COMPANY, CUSTOMER, LIST-NAME, PROMOTION, SALES-MAJCL, SALES-MINCL (OPCSET1); alternate indexes: OPCSET2, OPCSET3, OPCSET4, OPCSET5 and OPCSET6. It is related 1:1 to ARCOMP, CUSTDESC, ICCOMPANY, MAJORCL, MINORCL, OECOMPANY, OEDISCOUNT and OEPRCLIST. The table has 14 fields, 6 indexes and 9 documented relations.

About OEPLCLASS

This file stores the price list sales class that, if used, identifies the pricing and discounting parameters used to price all order or invoice lines for items falling into the specified sales class. This level of pricing overrides the prices on the price list level and is overridden by any item level pricing parameters established.

Fields (14)

Column = COBOL field name without the OPC- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored. PK = primary key (present in every index); SETn = leading/alternate key of that index.

Field / columnTypeDescription & valuesUpdated by
#OPC-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.—
#OPC-CUSTOMER PK
CUSTOMER
Alpha 9 (Right Justified)This field contains the number that represents a customer.—
#OPC-LIST-NAME PK
LIST_NAME
Alpha 14Enter the identifier of the price list that is to have the price list sales class record established.—
#OPC-PROMOTION PK
PROMOTION
Alpha 10Enter the name of the promotion that has a sales class price modifier established.—
#OPC-SALES-MAJCL PK
SALES_MAJCL
Alpha 4Sales major class code that indicates which items will be affected by this price modifier.—
#OPC-SALES-MINCL PK
SALES_MINCL
Alpha 4Sales minor class code that indicates which items will be affected by the price modifier.—
#OPC-BEG-DATE
BEG_DATE
Numeric 8 (yyyymmdd)This is the beginning date indicating when the promotion sales class price modifier will begin.—
#OPC-END-DATE SET5 SET6
END_DATE
Numeric 8 (yyyymmdd)This is the end date indicating when the promotion sales class price modifier will no longer be valid.—
#OPC-PROHIBIT-FL
PROHIBIT_FL
Alpha 1This flag indicates whether sales of the items within the sales major and minor classes are prohibited - meaning no sales of these items will be allowed (unless there is an item level record pricing the item, as that level overrides the sales class records).
  • Y Yes
  • N No
—
#OPC-CLASS-PRC-FL
CLASS_PRC_FL
Alpha 1This class price flag indicates whether the items in the sales class should be priced using amalgamation (group pricing logic). Group pricing is explained in detail in the Billing Procedures Manual.
  • N No
  • Y Yes
—
#OPC-BRK-QTY
BRK_QTY
Signed 9.0 Occurs 10 Times ×10If special pricing percentages should be applied for a specific sales class based on item quantities ordered, the lower item order quantity limit is entered in this field. An order for an item quantity surpassing this limit and less than the next limit will be priced using the override percentage specified in the field to the right, overriding the default pricing percentage specified for the sales class.—
#OPC-BRK-PCT
BRK_PCT
Percent 5.2 (Percent) Occurs 10 Times ×10The override pricing percentage to be used for the item order quantity break (specified in the Quantity Break field) is entered in this field.—
#OPC-DISC-CODE
DISC_CODE
Alpha 10A discount code can be assigned at this level. If this has been done, the entered discount will automatically be applied to lines priced via this record.—
#OPC-NO-CHARGE-FL
NO_CHARGE_FL
Alpha 1This field indicates the item's price is zero. This defaults to (N)o. If (Y)es, this field prevents the system from pricing the item. No charge invoices are not be passed to the Lawson Accounts Receivable system for collection.—

Indexes (6)

Keys are listed in index order; ↓ marks a descending key. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
OPCSET1
  1. COMPANY
  2. CUSTOMER
  3. LIST-NAME
  4. PROMOTION
  5. SALES-MAJCL
  6. SALES-MINCL
PrimaryWH20.2, WH20.7
OPCSET2
  1. COMPANY
  2. LIST-NAME
  3. PROMOTION
  4. SALES-MAJCL
  5. SALES-MINCL
SubsetWhere PROMOTION != Spaces—
OPCSET3
  1. COMPANY
  2. CUSTOMER
  3. LIST-NAME
  4. SALES-MAJCL
  5. SALES-MINCL
SubsetWhere PROMOTION = Spaces—
OPCSET4
  1. COMPANY
  2. CUSTOMER
  3. SALES-MAJCL
  4. SALES-MINCL
  5. LIST-NAME
SubsetWhere CUSTOMER != Spaces And PROMOTION = Spaces—
OPCSET5
  1. COMPANY
  2. CUSTOMER
  3. SALES-MAJCL
  4. SALES-MINCL
  5. END-DATE
KeyChange, SubsetWhere CUSTOMER > SpacesWH20.2, WH20.7
OPCSET6
  1. COMPANY
  2. LIST-NAME
  3. SALES-MAJCL
  4. SALES-MINCL
  5. END-DATE
KeyChange, SubsetWhere PROMOTION != SpacesWH20.2, WH20.7

Relations

Relationship map — 1:1 lookups/parents on the left, 1:M children on the right (up to 14 each)
ARCOMPCUSTDESCICCOMPANYMAJORCLMINORCLOECOMPANYOEDISCOUNTOEPRCLISTOEPLCLASS

One to one (9) — lookups and parents

RelationTableRulesConditionField map
ArcompARCOMPRequired
OPC-COMPANY→ACO-COMPANY
CustdescCUSTDESCRequired
ACO-CUST-GROUP→CUD-CUST-GROUP
OPC-CUSTOMER→CUD-CUSTOMER
IccompanyICCOMPANYRequired
OPC-COMPANY→ICC-COMPANY
MajorclMAJORCLRequired
ICC-ITEM-GROUP→MAJ-ITEM-GROUP
"S"→MAJ-CLASS-TYPE
OPC-SALES-MAJCL→MAJ-MAJOR-CLASS
MinorclMINORCLRequiredWhen OPC-SALES-MINCL != Spaces
ICC-ITEM-GROUP→MIN-ITEM-GROUP
"S"→MIN-CLASS-TYPE
OPC-SALES-MAJCL→MIN-MAJOR-CLASS
OPC-SALES-MINCL→MIN-MINOR-CLASS
OecompanyOECOMPANYRequired
OPC-COMPANY→OEC-COMPANY
OediscountOEDISCOUNTRequiredWhen OPC-DISC-CODE != Spaces
OPC-COMPANY→OED-COMPANY
OPC-DISC-CODE→OED-DISC-CODE
OeprclistOEPRCLISTRequired
OPC-COMPANY→OPL-COMPANY
OPC-CUSTOMER→OPL-CUSTOMER
OPC-LIST-NAME→OPL-LIST-NAME
OPC-PROMOTION→OPL-PROMOTION
Price ListOEPRCLISTRequiredWhen OPC-PROMOTION != Spaces
OPC-COMPANY→OPL-COMPANY
Spaces→OPL-CUSTOMER
OPC-LIST-NAME→OPL-LIST-NAME
Spaces→OPL-PROMOTION

Programs

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