LMINVOICE – Lease Invoice

System
LM (LM)
Prefix
INV
Primary key
COMPANY, LEASE, PMT-NBR, PMT-VENDOR, CANCEL-SEQ
Fields
35
Updated by
1 program
Referenced by
1 program

LMINVOICE is the Lease Invoice table in Lawson LM (prefix INV). It is indexed by COMPANY, LEASE, PMT-NBR, PMT-VENDOR, CANCEL-SEQ (INVSET1); alternate indexes: INVSET10, INVSET11, INVSET2, INVSET3, INVSET4, INVSET6, INVSET7, INVSET8 and 1 more. It is related 1:1 to APAPIHIST, APCOMPANY, APINVOICE, APVENMAST and LMLEASE and 1:M to LMDISTRIB, LMINVAU, LMPAYDTL and LMTRANS. It is updated by AP30.4 and referenced by APCP.1. The table has 35 fields, 10 indexes and 9 documented relations.

About LMINVOICE

This file stores the invoices generated from a lease payment schedule. These invoices can be edited and sent on to the Accounts Payable system.

Fields (35)

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

Field / columnTypeDescription & valuesUpdated by
INV-COMPANY PK
COMPANY
Numeric 4This field contains the Accounts Payable company associated with the invoice.
INV-LEASE PK
LEASE
Alpha 19This is the lease ID as defined using LM21.1 or LM21.2.
INV-PMT-VENDOR PK
PMT_VENDOR
Alpha 9 (Right Justified)This is the payment vendor or lessor associated with the lease payment.
INV-PMT-NBR PK
PMT_NBR
Numeric 6This is the payment number for the lease invoice, derived from the lease payment schedule.
INV-INVOICE
INVOICE
Alpha 22The field contains the unique invoice number associated with the invoice. For Lease Management, it consists of the lease ID and payment number.
INV-SUFFIX
SUFFIX
Numeric 3This field contains the invoice suffix used to make a recurring invoice instance unique.
INV-CANCEL-SEQ PK
CANCEL_SEQ
Numeric 4An automatically assigned sequence number.AP30.4
INV-STATUS
STATUS
Numeric 1This field contains the invoice status. Valid values are: NOTE: If the status of the invoice is Unreleased, the distribution posting status must be Unposted.
  • 0 Unreleased
  • 1 Released
  • 9 Posted
INV-AUTH-CODE
AUTH_CODE
Alpha 3This field contains the authority code of the person responsible for releasing the invoice for payment. This code is defined in theAccounts Payable system.
INV-PROC-LEVEL
PROC_LEVEL
Alpha 5This field contains the process level assigned to the invoice. Must be a valid record in the Accounts Payable system.
INV-HANDLING-CODE
HANDLING_CODE
Alpha 4This field contains the handling code specifying invoice rules. The handling code is defined in the Invoice Matching (MA) system.
INV-VOUCHER-NBR
VOUCHER_NBR
Alpha 10This field containd the user-defined voucher number for the invoice.
INV-ACCR-CODE
ACCR_CODE
Alpha 4
INV-INVOICE-TYPE
INVOICE_TYPE
Alpha 1This field contains the invoice type. Valid values are: invoice. Increases the amount owed to the vendor.
  • Blank Regular Invoice
  • C Credit Memo
  • H Historical
  • D Debit Memo. Processed just like an
INV-TRAN-INV-AMT
TRAN_INV_AMT
Signed 18.2This field contains the amount of the invoice in the invoice currency (which is also the lease currency).
INV-TRAN-CURR
TRAN_CURR
Alpha 5This field contains the transaction currency.
INV-TRAN-ND
TRAN_ND
Numeric 1The number of decimals assigned to a particular account as determined by the account currency.
INV-BASE-INV-AMT
BASE_INV_AMT
Signed 18.2This field contains the invoice amount in compaby base currency.
INV-BASE-CURR
BASE_CURR
Alpha 5This field contains the company base currency.
INV-BASE-ND
BASE_ND
Numeric 1The number of decimal positions defined for the company base currency.
INV-ORIG-CNV-RATE
ORIG_CNV_RATE
Signed 14.7
INV-INVOICE-DATE
INVOICE_DATE
Numeric 8 (yyyymmdd)This field contains the date of the invoice. It can be the date on which the vendor created the invoice or the date on which it was received. This is the date used when updating vendor balances.
INV-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)This field contains the description of the invoice.
INV-DUE-DATE
DUE_DATE
Numeric 8 (yyyymmdd)This field contains the invoice due date. It is used by the Accounts Payable system to select the invoice for payment.
INV-DISTRIB-DATE
DISTRIB_DATE
Numeric 8 (yyyymmdd)This field displays the system date when this was created.
INV-FISCAL-YEAR
FISCAL_YEAR
Numeric 4Contains the fiscal year for the data stored on this record.
INV-PERIOD
PERIOD
Numeric 2This is the current accounting period. This field is updated by Period Closing (GL199).
INV-APPROVED-FLAG
APPROVED_FLAG
Alpha 1If the invoice requires approval, this field indicates the approval status of the invoice. Valid values are:
  • Y Yes (approved)
  • N No (not yet approved)
  • D Disapproved (authorization denied)
INV-CANCELLED-FL
CANCELLED_FL
Alpha 1This field contains the canceled flag. Vaid values are:
  • Y Yes
  • N No
AP30.4
INV-CANCELLED-AP
CANCELLED_AP
DerivedThis flag is set in the Accounts Payable system if Cancelled Flag is set to Yes.
INV-CANCELLED-LM
CANCELLED_LM
DerivedThis flag is set in the Lease management system if Canceled Flag is set to Yes.
INV-REMIT-TO-CODE
REMIT_TO_CODE
Alpha 4A user-defined code that represents a vendor's remittance address.
INV-TRAN-TAX-AMT
TRAN_TAX_AMT
Signed 18.2
INV-BASE-TAX-AMT
BASE_TAX_AMT
Signed 18.2
INV-TRAN-TAXABLE
TRAN_TAXABLE
Signed 18.2

Indexes (10)

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

IndexKeysFlagsConditionUsed in
INVSET1COMPANY, LEASE, PMT-NBR, PMT-VENDOR, CANCEL-SEQPrimaryAP30.4
INVSET10COMPANY, LEASE, FISCAL-YEAR*, PERIOD*, PMT-NBR*, PMT-VENDOR, CANCEL-SEQKeyChange
INVSET11COMPANY, LEASE, DUE-DATE*, PMT-NBR*, PMT-VENDOR, CANCEL-SEQKeyChange
INVSET2COMPANY, AUTH-CODE, PMT-VENDOR, LEASE, PMT-NBR, DUE-DATEKeyChange, SubsetWhere (CANCEL-SEQ = Zeroes) And (STATUS = Zeroes)
INVSET3COMPANY, LEASE, PMT-VENDOR, PMT-NBRKeyChange, SubsetWhere (CANCEL-SEQ = Zeroes) And (STATUS = Zeroes)
INVSET4COMPANY, APPROVED-FLAG, AUTH-CODE, LEASE, PMT-NBR, PMT-VENDORKeyChange, SubsetWhere (CANCEL-SEQ = Zeroes) And (STATUS = Zeroes)
INVSET6COMPANY, LEASE, DUE-DATE, PMT-NBR, PMT-VENDOR, CANCEL-SEQKeyChange
INVSET7COMPANY, PMT-VENDOR, INVOICE, SUFFIX, CANCEL-SEQKeyChangeAP30.4, APCP.1
INVSET8COMPANY, PMT-VENDOR, LEASE, PMT-NBRKeyChange, SubsetWhere (CANCEL-SEQ = Zeroes) And (STATUS = Zeroes)
INVSET9COMPANY, LEASE, FISCAL-YEAR, PERIOD, PMT-VENDOR, PMT-NBR, CANCEL-SEQKeyChange

Relations

One to one (5) — lookups and parents

RelationTableRulesConditionField map
ApapihistAPAPIHISTNot RequiredINV-COMPANYAH1-COMPANY (AH1SET1), INV-PMT-VENDORAH1-VENDOR, INV-INVOICEAH1-INVOICE, INV-SUFFIXAH1-SUFFIX, INV-CANCEL-SEQAH1-CANCEL-SEQ
ApcompanyAPCOMPANYRequiredINV-COMPANYCPY-COMPANY
ApinvoiceAPINVOICENot RequiredINV-COMPANYAPI-COMPANY, INV-PMT-VENDORAPI-VENDOR, INV-INVOICEAPI-INVOICE, INV-SUFFIXAPI-SUFFIX, INV-CANCEL-SEQAPI-CANCEL-SEQ
ApvenmastAPVENMASTRequiredCPY-VENDOR-GROUPVEN-VENDOR-GROUP, INV-PMT-VENDORVEN-VENDOR
LmleaseLMLEASENot RequiredINV-COMPANYLSE-COMPANY, INV-LEASELSE-LEASE

One to many (4) — child tables

RelationTableRulesConditionField map
LmdistribLMDISTRIBINV-COMPANYDIS-COMPANY, INV-PMT-VENDORDIS-PMT-VENDOR, INV-LEASEDIS-LEASE, INV-PMT-NBRDIS-PMT-NBR, INV-CANCEL-SEQDIS-CANCEL-SEQ, DIS-DIST-SEQ-NBR
LminvauLMINVAUINV-COMPANYLIA-COMPANY, INV-LEASELIA-LEASE, INV-PMT-NBRLIA-PMT-NBR, INV-PMT-VENDORLIA-PMT-VENDOR, INV-CANCEL-SEQLIA-CANCEL-SEQ, LIA-ACTION, LIA-DATE, LIA-TIME, LIA-UNIQUE-I-D
LmpaydtlLMPAYDTLINV-COMPANYLPD-COMPANY, INV-LEASELPD-LEASE, INV-PMT-VENDORLPD-PMT-VENDOR, INV-PMT-NBRLPD-PMT-NBR, LPD-EXEC-CODE
LmtransLMTRANSINV-COMPANYLMT-COMPANY, INV-LEASELMT-LEASE, INV-PMT-NBRLMT-PMT-NBR, INV-PMT-VENDORLMT-PMT-VENDOR, INV-CANCEL-SEQLMT-CANCEL-SEQ, LMT-SEQ-NBR

Programs

Updated by (1)

Referenced by (1)