EEADVANCE – Employee Advance

System
Accounts Payable (AP)
Prefix
EEA
Primary key
COMPANY, VENDOR, ADVANCE-NBR
Fields
34
Updated by
9 programs
Referenced by
301 programs

EEADVANCE is the Employee Advance table in Lawson Accounts Payable (prefix EEA). It is indexed by COMPANY, VENDOR, ADVANCE-NBR (EEASET1); alternate indexes: EEASET2 and EEASET3. It is related 1:1 to APCOMPANY, APINVOICE, APPAYMENT, APVENMAST, CBCHECK, CBTRANS, EEAPPROVAL and GLSYSTEM and 1:M to EEMATCHING. It is updated by AP30.4, AP300, AP305, AP55.1, EE135, EE20.1, EE35.1, EE35.2 and 1 more and referenced by AC160, AM115, AM117, AM15.1, AM15.2, AM15.3, AM15.4, AM19.1 and 293 more. The table has 34 fields, 3 indexes and 13 documented relations.

About EEADVANCE

The Employee Advance file contains employee advance records created in the Lawson Employee Expense system.

Fields (34)

Column = COBOL field name without the EEA- 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
#EEA-COMPANY PK
COMPANY
Numeric 4The company number. Must be a valid record in the Accounts Payable Company file.EE20.1
#EEA-VENDOR PK
VENDOR
Alpha 9 (Right Justified)The employee number. Must be a valid vendor record in the Accounts Payable Vendor file.EE20.1
#EEA-ADVANCE-NBR PK
ADVANCE_NBR
Alpha 10A unique number assigned to the employee advance.EE20.1
#EEA-ADV-DESC
ADV_DESC
Alpha 30The description of the advance.EE20.1
#EEA-REC-STATUS SET2
REC_STATUS
Numeric 1The record status of the advance. Valid values are:
  • 0 Unreleased.
  • 1 Released.
EE135, EE20.1, EE35.1, EE35.2, EE520
#EEA-APPROVAL-CODE SET3
APPROVAL_CODE
Alpha 3The approval code assigned to the employee advance. Used for approving advances and expenses before they can be released to the Accounts Payable system. Must be a valid record in the Approval Code file.EE20.1, EE35.1
#EEA-PROC-LEVEL
PROC_LEVEL
Alpha 5The process level assigned to the employee advance. Must be a valid record in the Accounts Payable Process Level file.EE20.1
#EEA-TRAN-ADV-AMT
TRAN_ADV_AMT
Signed 18.2The amount of the employee advance. Must be entered in company base currency. This field contains the same value as the Base Advance Amount field.EE20.1
#EEA-TRAN-ND
TRAN_ND
Numeric 1The number of decimal positions defined for the currency of the advance.EE20.1
#EEA-BASE-ADV-AMT
BASE_ADV_AMT
Signed 18.2The amount of the employee advance in the company base currency.EE20.1
#EEA-ADV-CURRENCY
ADV_CURRENCY
Alpha 5The currency of the employee advance. Defaults the company base currency. Must be a valid record in the Currency Code file.EE20.1
#EEA-CURR-RATE
CURR_RATE
Signed 14.7The exchange rate used to convert the transaction advance amount to the company base currency.EE20.1
#EEA-CURR-EFF-DATE
CURR_EFF_DATE
Numeric 8 (yyyymmdd)The effective date for the currency exchange rate.—
#EEA-ADVANCE-DATE
ADVANCE_DATE
Numeric 8 (yyyymmdd)The date the employee advance was authorized. Used when updating the employee's balance (vendor balance).EE20.1
#EEA-CASH-CODE
CASH_CODE
Alpha 4The cash code assigned to the employee advance. Represents the bank account the advance is paid from. Must be a valid record in the Cash Code file.EE20.1
#EEA-ACCR-CODE
ACCR_CODE
Alpha 4The invoice accrual code assigned to the employee advance. Used to default a general ledger accrual account to the advance. Must be a valid record in the Invoice Accrual Code file.EE20.1
#EEA-HLD-CODE
HLD_CODE
Alpha 4The hold code assigned to the employee advance, if assigned. Used to prevent the advance from being scheduled for payment in the Lawson Accounts Payable system. Must be a valid invoice hold code record in the Hold Code file.EE20.1, EE35.1
#EEA-HOLD-TYPE
HOLD_TYPE
Alpha 1Indicates the type of invoice hold code assigned to the employee advance. Valid values are: Payable, the advance will be held for only one payment cycle. AP170 (Payment Closing) removes the hold code from the advance record. Payable, the advance will be held until you remove the hold code from the advance record. Blank. A hold code is not assigned to the employee advance.
  • T Temporary. Upon release to Accounts
  • P Permanent. Upon release to Accounts
EE20.1, EE35.1
#EEA-REL-FOR-PMT
REL_FOR_PMT
Alpha 1Indicates whether the advance can be released to Accounts Payable. Valid values are:
  • Y Yes.
  • N No.
EE20.1, EE35.1
#EEA-TRANS-NBR
TRANS_NBR
Alpha 10 (Right Justified)The payment number assigned to the employee advance if paid with a manual payment. This field is zero for an advance payment issued with a system payment in Accounts Payable.AP55.1, EE20.1
#EEA-BANK-INST-CODE
BANK_INST_CODE
Alpha 3The payment code assigned to the employee advance. Represents a type of cash payment. Must be a valid cash payment type bank transaction code record in the Bank Transaction Code file.EE20.1
#EEA-CHECK-DATE
CHECK_DATE
Numeric 8 (yyyymmdd)The date assigned to the manual payment. This date is assigned to general ledger transactions created for the payment.AP55.1, EE20.1
#EEA-CHECK-AMT
CHECK_AMT
Signed 18.2The manual payment amount issued for the employee advance. Defaults the company base currency advance amount.EE20.1
#EEA-TRANS-IDENT
TRANS_IDENT
Numeric 10A unique system-generated identification value assigned to the transaction to make this record unique.AP55.1, EE20.1
#EEA-APPROVED-FLAG
APPROVED_FLAG
Alpha 1Indicates whether the invoice is approved for payment.EE20.1
#EEA-REMIT-TO-CODE
REMIT_TO_CODE
Alpha 4A user-defined code that represents a vendor's remittance address.EE20.1
#EEA-JRNL-BOOK-NBR
JRNL_BOOK_NBR
Alpha 12The journal book assigned to the transaction.—
#EEA-PAY-GROUP
PAY_GROUP
Alpha 4The pay group associated with the employee advance. Must be a valid record in the Pay Group file.EE20.1
#EEA-CREATE-DATE
CREATE_DATE
Numeric 8 (yyyymmdd)The creation date.EE20.1
#EEA-AP-STATUS
AP_STATUS
DerivedThe record status of the employee advance in the Lawson Accounts Payable system. Used when matching paid advances to expenses. Valid values are: Blank. Not released to Accounts Payable.
  • 1 Released.
  • 9 Historical.
—
#EEA-ACTIVITY
ACTIVITY
Alpha 15—EE20.1
#EEA-ACCT-CATEGORY
ACCT_CATEGORY
Alpha 5—EE20.1
#EEA-GLT-OBJ-ID
GLT_OBJ_ID
Numeric 12——
#EEA-ATN-OBJ-ID
ATN_OBJ_ID
Numeric 12——

Indexes (3)

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
EEASET1
  1. COMPANY
  2. VENDOR
  3. ADVANCE-NBR
PrimaryAC160, AM115, AM117, AM15.1, AM15.2, AM15.3, AM15.4, AM19.1 +22 more (list truncated in source)
EEASET2
  1. COMPANY
  2. REC-STATUS
  3. VENDOR
  4. ADVANCE-NBR
KeyChangeAP55.1, EE20.1, EE230
EEASET3
  1. COMPANY
  2. APPROVAL-CODE
  3. VENDOR
  4. ADVANCE-NBR
KeyChange, SubsetWhere (REC-STATUS = Zeroes)EE135, EE220, EE235, EE35.1

Relations

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

One to one (12) — lookups and parents

RelationTableRulesConditionField map
ApcompanyAPCOMPANYRequired
EEA-COMPANY→CPY-COMPANY
Apinvoice1APINVOICENot Required
EEA-COMPANY→API-COMPANY
EEA-VENDOR→API-VENDOR
EEA-ADVANCE-NBR→API-INVOICE
Zeroes→API-SUFFIX
Zeroes→API-CANCEL-SEQ
Apinvoice2APINVOICENot Required
EEA-COMPANY→API-COMPANY
EEA-VENDOR→API-VENDOR
EEA-ADVANCE-NBR→API-INVOICE
1→API-SUFFIX
Zeroes→API-CANCEL-SEQ
Appayment1APPAYMENTRequired
EEA-COMPANY→APP-COMPANY
EEA-VENDOR→APP-VENDOR
EEA-ADVANCE-NBR→APP-INVOICE
Zeroes→APP-SUFFIX
Zeroes→APP-CANCEL-SEQ
1→APP-SEQ-NBR
Zeroes→APP-VOID-SEQ
Appayment2APPAYMENTNot Required
EEA-COMPANY→APP-COMPANY
EEA-VENDOR→APP-VENDOR
EEA-ADVANCE-NBR→APP-INVOICE
1→APP-SUFFIX
Zeroes→APP-CANCEL-SEQ
1→APP-SEQ-NBR
Zeroes→APP-VOID-SEQ
ApvenmastAPVENMASTRequired
CPY-VENDOR-GROUP→VEN-VENDOR-GROUP
EEA-VENDOR→VEN-VENDOR
Cbcheck1CBCHECKNot RequiredValid When API- = EEA- And API-TRAN-INV-AMT = EEA-TRAN-PAID-AMT
APP-CASH-CODE→CHK-CASH-CODE
APP-BANK-INST-CODE→CHK-BANK-INST-CODE
APP-TRANS-IDENT→CHK-TRANS-IDENT
Cbcheck2CBCHECKNot Required
APP-CASH-CODE→CHK-CASH-CODE
APP-BANK-INST-CODE→CHK-BANK-INST-CODE
APP-TRANS-IDENT→CHK-TRANS-IDENT
Cbtrans1CBTRANSNot Required
APP-BANK-INST-CODE→CBT-BANK-INST-CODE
APP-TRANS-IDENT→CBT-TRANS-IDENT
Cbtrans2CBTRANSNot Required
APP-BANK-INST-CODE→CBT-BANK-INST-CODE
APP-TRANS-IDENT→CBT-TRANS-IDENT
EeapprovalEEAPPROVALRequired
EEA-COMPANY→EAP-COMPANY
EEA-APPROVAL-CODE→EAP-APPROVAL-CODE
GlsystemGLSYSTEMRequired
EEA-COMPANY→GLS-COMPANY

One to many (1) — child tables

RelationTableRulesConditionField map
EematchingEEMATCHING
EEA-COMPANY→EEM-COMPANY
EEA-VENDOR→EEM-VENDOR
EEA-ADVANCE-NBR→EEM-ADVANCE-NBR
—→EEM-EXPENSE-NBR

Programs

Updated by (9)

Referenced by (301)