ARSAPPLIED – Cash Application Select

System
Accounts Receivable (AR)
Prefix
ASG
Primary key
CR-COMPANY, CR-BATCH, CR-PYMNT-SEQ, COMPANY, TRANS-TYPE, INVOICE, PAYMENT-SEQ
Fields
15
Updated by
1 program
Referenced by
1 program

ARSAPPLIED is the Cash Application Select table in Lawson Accounts Receivable (prefix ASG). It is indexed by CR-COMPANY, CR-BATCH, CR-PYMNT-SEQ, COMPANY, TRANS-TYPE, INVOICE, PAYMENT-SEQ (ASGSET1); alternate indexes: ASGSET2 and ASGSET3. It is related 1:1 to AROITEMS and ARPAYMENT and 1:M to ARSADJUST. It is updated by CB06.2 and referenced by CB191. The table has 15 fields, 3 indexes and 3 documented relations.

About ARSAPPLIED

The Cash Application Select file contains the cash application select records that have been selected but not yet processed, thereby creating application records.

Fields (15)

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

Field / columnTypeDescription & valuesUpdated by
ASG-CR-COMPANY PK
CR_COMPANY
Numeric 4The number representing an AR company.
ASG-CR-BATCH PK
CR_BATCH
Numeric 6The batch of the payment.
ASG-CR-PYMNT-SEQ PK
CR_PYMNT_SEQ
Numeric 6The sequence number of the payment.
ASG-COMPANY PK
COMPANY
Numeric 4The company number of the transaction.
ASG-TRANS-TYPE PK
TRANS_TYPE
Alpha 1The transaction type associated with the selected application. Valid values are:
  • C Credit Memo
  • D Debit Memo
  • I Invoice
  • P Payment
ASG-INVOICE PK
INVOICE
Alpha 22Used to identify the invoice.
ASG-PAYMENT-SEQ PK
PAYMENT_SEQ
Numeric 6A unique number assigned to each transaction to be interfaced into the Lawson system.
ASG-OPEN-AMT
OPEN_AMT
Signed 18.2The open amount of the transaction.
ASG-ORIG-OPEN-AMT
ORIG_OPEN_AMT
Signed 18.2The open amount in transaction currency.
ASG-CR-ORIG-AP-AMT
CR_ORIG_AP_AMT
Signed 18.2The amount of the application in the payment currency.
ASG-ADJ-SEQ
ADJ_SEQ
Numeric 3The sequence number of the adjustment.
ASG-GL-DATE
GL_DATE
Numeric 8 (yyyymmdd)This field contains the date the applications will be posted to the general ledger.
ASG-OPR-CODE
OPR_CODE
Alpha 10 (Lower Case)This field contains the operator code. This is the user ID of the person who last maintained this record.
ASG-EFT-FL
EFT_FL
Alpha 1Indicates if the open amount was selected for application during EFT processing. Valid values are: processing processing
  • Y Record was written from EFT
  • N Record was written from online
ASG-SELECT-SEQ
SELECT_SEQ
Numeric 6The payment application order.

Indexes (3)

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

IndexKeysFlagsConditionUsed in
ASGSET1CR-COMPANY, CR-BATCH, CR-PYMNT-SEQ, COMPANY, TRANS-TYPE, INVOICE, PAYMENT-SEQPrimaryCB06.2, CB191
ASGSET2COMPANY, TRANS-TYPE, INVOICE, PAYMENT-SEQ
ASGSET3CR-COMPANY, CR-BATCH, CR-PYMNT-SEQ, SELECT-SEQ

Relations

One to one (2) — lookups and parents

RelationTableRulesConditionField map
AroitemsAROITEMSRequiredASG-COMPANYARO-COMPANY (AROSET1), ASG-TRANS-TYPEARO-TRANS-TYPE, ASG-INVOICEARO-INVOICE, ASG-PAYMENT-SEQARO-PAYMENT-SEQ
ArpaymentARPAYMENTRequiredASG-CR-COMPANYAPM-COMPANY, ASG-CR-BATCHAPM-BATCH-NBR, ASG-CR-PYMNT-SEQAPM-PAYMENT-SEQ

One to many (1) — child tables

RelationTableRulesConditionField map
ArsadjustARSADJUSTDelete CascadesASG-COMPANYASJ-COMPANY, ASG-TRANS-TYPEASJ-TRANS-TYPE, ASG-INVOICEASJ-INVOICE, ASG-PAYMENT-SEQASJ-PAYMENT-SEQ, ZeroesASJ-BATCH-NBR, ASJ-ADJ-SEQ

Programs

Updated by (1)

Referenced by (1)