ACHISTHDR – Invoice Header

System
AC Billing Revenue (BR)
Prefix
HIH
Primary key
OBJ-ID
Fields
59
Updated by
18 programs
Referenced by
18 programs

ACHISTHDR is the Invoice Header table in Lawson AC Billing Revenue (prefix HIH). It is indexed by OBJ-ID (HIHSET1); alternate indexes: HIHSET2, HIHSET3, HIHSET4, HIHSET5, HIHSET6, HIHSET7, HIHSET8 and HIHSET9. It is related 1:1 to ACCNTRACT, ARCOMP, ARCONTACTS, ARCUSTOMER, AROIHDR, ARPROCLEVL, BILLTO and CUSTDESC and 1:M to ACHISTCNSL, ACHISTDTL, ACHISTGM, ACHISTTAX, ACINVAUDIT, ACINVORD and ACPROADJ. It is updated by BR122, BR131, BR145, BR20.1, BR20.2, BR20.3, BR20.4, BR20.5 and 10 more and referenced by AC300, BR02.1, BR02.3, BR09.1, BR120, BR121, BR123, BR140 and 10 more. The table has 59 fields, 9 indexes and 18 documented relations.

About ACHISTHDR

The Billing and Revenue Invoice Header file contains the control information associated with an invoice. The file is keyed by Obj-ID.

Fields (59)

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

Field / columnTypeDescription & valuesUpdated by
HIH-OBJ-ID PK
OBJ_ID
Numeric 12The object identifier. It is a unique number used to relate the invoice Header to the invoice detail lines (ACHISTDTL).BRIP.1
HIH-COMPANY
COMPANY
Numeric 4Identifies the Accounts Receivable company which is maintained in AR10.BRIP.1
HIH-CUSTOMER
CUSTOMER
Alpha 9 (Right Justified)Identifies the AR customer associated with the invoice.BRIP.1
HIH-INVOICE
INVOICE
Alpha 22Used to identify the invoice. Represents the invoice prefix and the invoice number and will be the invoice in AR.BRIP.1
HIH-INVOICE-PREFIX
INVOICE_PREFIX
Alpha 2The Invoice Prefix or the Credit Memo Prefix value that is maintained in the AC Customer (BR11). This must be unique by system code and company.BRIP.1
HIH-INVOICE-NBR
INVOICE_NBR
Numeric 8The next sequential Accounts Receivable invoice number.BRIP.1
HIH-PROCESS-LEVEL
PROCESS_LEVEL
Alpha 5The Accounts Receivable process level, which is the reporting hierarchy below the AR Company. Defined in AC Customer (BR11).BRIP.1
HIH-DUE-DATE
DUE_DATE
Numeric 8 (yyyymmdd)The invoice due date, derived from the "Invoice Terms Code" in Accounts Receivable Customer (AR10).BR20.7, BRIP.1
HIH-BILL-TO
BILL_TO
Numeric 4This is the "Bill To" code that represents the customers billing address. The address will be defaulted from the AR Customer address if this Bill-To code field is not filled in. The Bill To addresses are maintained in the AR Bill To (AR09.4).BR02.3, BR120, BR121, BR122, BR123, BR140, BR151, BR152 +10 more
HIH-CONTRACT
CONTRACT
Alpha 15The contract maintained on Contract (BR10). This field is blank if the invoice combines multiple contracts or the invoice is created using the Single Invoice Calculation (BR19).BRIP.1
HIH-CONTACT-CODE
CONTACT_CODE
Alpha 5The contact code represents the contact information, this is attached to he AC Customer in (BR11).BR20.7, BRIP.1
HIH-AR-DETAIL
AR_DETAIL
Alpha 1The AR Interface Option maintained on the AC Customer (BR11). The valid values are:
  • S Summary
  • D Detail
  • A Activity
  • S Summary
  • D Detail
  • A Activity/Acct Cat
BRIP.1
HIH-INVOICE-TYPE
INVOICE_TYPE
Alpha 1Indicates whether the invoice is a retainer, regular or cancelled invoice. The values are:
  • R Retainer
  • I Invoice
  • B Invoice Cancel
  • R Retainer
  • I Invoice
  • B Invoice Cancel
  • C Auto generated retainer credit
  • F Non Grant Fund
BRIP.1
HIH-INVOICE-DATE
INVOICE_DATE
Numeric 8 (yyyymmdd)The date of the invoice, which is defined on the BR19 or BR120 programs. If not entered in these programs then the Through Date will default. If the Through date is left blank the system date will default.BR20.7, BRIP.1
HIH-POSTING-DATE
POSTING_DATE
Numeric 8 (yyyymmdd)The date assigned to the journal entry for posting. This date will be defaulted from the Through Date on the BR19 or BR120 forms, or if the Through Date is left blank the system date will default.BR20.7, BRIP.1
HIH-REFERENCE
REFERENCE
Alpha 10 (Lower Case)This is filled with the program token that created the record. They can only be BR02, BR19, BR21, BR45, BR120, BR121 and BR140.BRIP.1
HIH-CURRENCY-CODE
CURRENCY_CODE
Alpha 5The contract currency code established in Contract (BR10).BRIP.1
HIH-CURR-ND
CURR_ND
Numeric 1The number of decimals defined for the currency of the object.BRIP.1
HIH-INVOICE-AMT
INVOICE_AMT
Signed 18.2The total invoice amount.BR20.1, BR20.2, BR20.3, BR20.4, BR20.5, BR46.1, BR46.2, BR46.4 +1 more
HIH-UNITS-AMOUNT
UNITS_AMOUNT
Signed 15.2The total units for the invoice.BR20.1, BR20.2, BR20.3, BR20.4, BR20.5, BR46.1, BR46.2, BR46.4 +1 more
HIH-CUST-PO-NBR
CUST_PO_NBR
Alpha 22The purchase order number maintained in the Contract (BR10).BR20.7, BRIP.1
HIH-INVC-OPTIONS
INVC_OPTIONS
Alpha 1The first Summarize by option maintained on the AC Customer (BR11). The valid values are:
  • A Account Category
  • B Summary Acct Cat
  • C Attribute
  • D Resource
  • A Account Category
  • B Contract Category Group
  • C Attribute
  • D Resource
  • E Summary Account Category
  • F Cost Classification
BRIP.1
HIH-INVC-FORMAT
INVC_FORMAT
Alpha 1The Invoice Format option maintained on the AC Customer (BR11). The valid values are:
  • S Standard
  • C Customized
  • F Fax with Standard
  • E EDI with Standard
  • S Standard
  • C Customized
  • F Fax
  • E EDI
  • V Custom Vat
BRIP.1
HIH-RETAIN-ID
RETAIN_ID
Numeric 6The Retainer Sequence maintained on the Retainer Parameters (BR02).BRIP.1
HIH-RETAIN-DESC
RETAIN_DESC
Alpha 30The retainer description maintained on the Retainer Parameters (BR02).BRIP.1
HIH-CUM-FLAG
CUM_FLAG
Alpha 1The Cumlative Totals flag maintained on the AC Customer (BR11). This tells us whether or not the cumulative totals are to be displayed on the invoice. The valid values are:
  • Y Yes
  • N No
BRIP.1
HIH-INVC-SUMM-OPT
INVC_SUMM_OPT
Alpha 1The Invoice Print Option maintained on the AC Customer (BR11). The valid values are:
  • D Detail
  • S Summary
  • D Detail
  • S Summary
BRIP.1
HIH-INVC-OPTION-2
INVC_OPTION_2
Alpha 1The second Summarize by option maintained on the AC Customer (BR11). The valid values are:
  • A Account Category
  • B Summary Acct Cat
  • C Attribute
  • D Resource
  • A Account Category
  • B Contract Category Group
  • C Attribute
  • D Resource
  • E Summary Account Category
BRIP.1
HIH-AC-CUSTOMER-ID
AC_CUSTOMER_ID
Alpha 5The "Customer Invoice Option" established on the AC Customer(BR11), and attached to the Contract on the Contract parameters (BR10). This option stores the AC Customer information for processing an invoice. Only one option can be attached to each contract on the BR10. When creating a combined contract invoice in the Single Calculation (BR19) with different options, the user must specify one option for the invoice.BRIP.1
HIH-WBS-INVC-NBR
WBS_INVC_NBR
Numeric 8The sequential invoice number for the invoice group (BILLl-WBS-CODE) maintained on the Activity (AC10). Used by Gov't Contractors to keep invoices sequentially numbered when billing different posting activities separately within a contract.BRIP.1
HIH-CUST-NAME
CUST_NAME
DerivedThe name of the customer established on the AR customer group address (AR09).
HIH-LOCK-BOX
LOCK_BOX
Alpha 2The lock box code for the invoice company maintained in AR Customer Defaults (AR08).BRIP.1
HIH-XREF-NBR
XREF_NBR
Alpha 22The original invoice number for a cancelled or deleted invoice or credit memo. Used to map the original invoice to the invoice created for a cancel or delete.BRIP.1
HIH-BILL-WBS-CODE
BILL_WBS_CODE
Alpha 3The Invoice Group identified on the Activity (AC10) for the posting level activity. This is for creating separate invoices by activity group. Related to the WBS-INVC-NBR field.BRIP.1
HIH-EXCEED-OPTION
EXCEED_OPTION
Alpha 1The "Ceiling Overage" option indicated on the AC Customer (BR11). The valid values are:
  • I Include
  • E Exclude
  • I Include
  • E Exclude
BRIP.1
HIH-REALIZATION-FL
REALIZATION_FL
Alpha 1Flag used to determine if the Revenue Realization (BR131) program has been run for these invoices. The valid values are:
  • Y Yes
  • N No
  • Y Yes
  • N No
BR122, BR131, BRIP.1
HIH-WBS-XREF-NBR
WBS_XREF_NBR
Alpha 22The historical combined contract reference number.
HIH-STATUS
STATUS
Numeric 1The status of the invoice. The valid values are:
  • 0 Unreleased
  • 1 Released
  • 2 Pending Approval
  • 3 Processed
  • 4 Cancelled
  • 5 Invoice Delete
  • 0 Unreleased
  • 1 Released
  • 2 Pending Approval
  • 3 Processed
  • 4 Cancelled
  • 5 Invoice Delete
BR122, BR145, BR20.1, BR20.2, BR20.3, BR20.4, BR20.5, BR45.1 +2 more
HIH-LAST-LINE-NBR
LAST_LINE_NBR
Numeric 6The number of the last line item added to the document. It is used to determine what the next line number is when you add another item.BR20.1, BR20.2, BR20.3, BR20.4, BR20.5, BR46.1, BR46.2, BR46.4 +1 more
HIH-USER-NAME
USER_NAME
Alpha 10 (Lower Case)The system user name that identifies who creatd the invoice.BRIP.1
HIH-BILL-TO-GRP
BILL_TO_GRP
Numeric 4This is the "Bill to Group" maintained on the AC Customer (BR11). It represents the Bill to Group that is attached to the customer. It will print multiple invoices with different bill to addresses. It will only be used when using the "Custom Invoice" option.BRIP.1
HIH-CNT-WBS-CODE
CNT_WBS_CODE
Alpha 3The Invoice Group associated with the Contract Activity. This is used to combine invoices across contracts. The invoice group must be set up with the Combine Contracts flag set to Y=Yes on the Invoice Groups (BR06).BRIP.1
HIH-FEE-EXCEED-OPT
FEE_EXCEED_OPT
Alpha 1The "Fee Ceiling Overage" option maintained on the AC Customer (BR11). The valid values are:
  • I Include
  • E Exclude
  • I Include
  • E Exclude
BRIP.1
HIH-PRE-ADJUST-AMT
PRE_ADJUST_AMT
Signed 18.2The cumulative amount of all adjustment transactions within the invoice.BR20.1, BR20.2, BR20.3, BR20.4, BR20.5
HIH-PRE-HOLD-AMT
PRE_HOLD_AMT
Signed 18.2The cumulative amount of all held transactions within the invoice.BR20.1, BR20.2, BR20.3, BR20.4, BR20.5
HIH-PRE-BILL-HIST
PRE_BILL_HIST
Signed 18.2The billable amount including transactions, milestones, overage, retention and retainers prior to adjustments.BRIP.1
HIH-FINAL-INVC-FL
FINAL_INVC_FL
Alpha 1Flag indicating whether the invoice has been processed final. The valid values are:
  • Y Yes
  • N No
  • Y Yes
  • N No
BRIP.1
HIH-PRE-BIA
PRE_BIA
Signed 18.2The cumulative amount of all bill in advance transactions added to the invoice.BR46.1
HIH-PRE-XFER
PRE_XFER
Signed 18.2The cumulative amount of all the transfer transactions added to or subtracted from the invoice.BR46.2, BR46.4
HIH-TAX-PRINT
TAX_PRINT
Alpha 1Determines how to summarize the tax codes/amounts on the invoice. This is maintained on the AC Customer (BR11). The valid values are:
  • M Multiple sum by code/level
  • S Single tax line
  • M Multiple sum by code/level
  • S Single tax line
BRIP.1
HIH-HIST-FLAG
HIST_FLAG
Alpha 1
HIH-JURIS-CODE
JURIS_CODE
Alpha 3BRIP.1
HIH-TAX-FLAG
TAX_FLAG
Alpha 1TX101
HIH-INVC-OPTION-3
INVC_OPTION_3
Alpha 1
  • A Account Category
  • B Contract Category Group
  • C Attribute
  • D Resource
  • E Summary Account Category
BRIP.1
HIH-INVC-OPTION-4
INVC_OPTION_4
Alpha 1
  • A Account Category
  • B Contract Category Group
  • C Attribute
  • D Resource
  • E Summary Account Category
BRIP.1
HIH-INVC-OPTION-5
INVC_OPTION_5
Alpha 1
  • A Account Category
  • B Contract Category Group
  • C Attribute
  • D Resource
  • E Summary Account Category
BRIP.1
HIH-TAX-CALC-FLAG
TAX_CALC_FLAG
Alpha 1This flag determines whether tax will be calculated at a detail level or summary level. If calculated at a detail level, tax amounts will be calculated separately for each invoice line. If calculated at a summary level, taxable amount for a tax code for the whole invoice will be determined, and tax will be calculated on that summarized taxable amount.
  • 1 Detail
  • 2 Summary
BRIP.1
HIH-PRO-ADJ-FL
PRO_ADJ_FL
Alpha 1" "
  • Y Yes
  • N No
BR20.1, BR20.2, BR20.3, BR20.4, BR20.5, BR46.1, BR46.2, BR46.4 +2 more
HIH-GRANT
GRANT
Alpha 30

Indexes (9)

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

IndexKeysFlagsConditionUsed in
HIHSET1OBJ-IDPrimaryAC300, BR02.3, BR09.1, BR120, BR121, BR122, BR123, BR131 +22 more (list truncated in source)
HIHSET2CONTRACT, COMPANY, CUSTOMER, AC-CUSTOMER-ID, INVOICE, OBJ-IDKeyChangeBR02.1, BR121, BR131, BR145, BR245, BR300, BR400, BR420
HIHSET3CONTRACT, OBJ-IDKeyChange
HIHSET4COMPANY, CUSTOMER, CONTRACT, INVOICE-PREFIX, INVOICE-NBR, OBJ-IDKeyChangeBR420
HIHSET5INVOICE-PREFIX, INVOICE-NBR, COMPANY, CUSTOMER, OBJ-IDKeyChangeBR02.3, BR21.1, BR420
HIHSET6INVOICE-TYPE, CONTRACT, RETAIN-ID, INVOICE-PREFIX, INVOICE-NBR, OBJ-IDKeyChangeBR02.1
HIHSET7COMPANY, CUSTOMER, INVOICE-PREFIX, INVOICE-NBR, OBJ-IDKeyChangeBR20.1, BR20.2, BR20.3, BR20.4, BR20.5, BR20.7, BR45.1, BR46.1 +4 more
HIHSET8CONTRACT, GRANT, OBJ-ID
HIHSET9GRANT, CONTRACT, OBJ-ID

Relations

One to one (11) — lookups and parents

RelationTableRulesConditionField map
AccntractACCNTRACTNot RequiredHIH-CONTRACTCNT-CONTRACT (CNTSET1)
ArcompARCOMPNot RequiredHIH-COMPANYACO-COMPANY
ArcontactsARCONTACTSNot RequiredHIH-COMPANYCON-COMPANY, HIH-CUSTOMERCON-CUSTOMER, HIH-CONTACT-CODECON-RESP-CODE
ArcustomerARCUSTOMERNot RequiredHIH-COMPANYACM-COMPANY, HIH-CUSTOMERACM-CUSTOMER
Aroihdr CAROIHDRNot RequiredHIH-COMPANYARH-COMPANY, "C"ARH-TRANS-TYPE, HIH-INVOICEARH-INVOICE
Aroihdr DAROIHDRNot RequiredHIH-COMPANYARH-COMPANY, "D"ARH-TRANS-TYPE, HIH-INVOICEARH-INVOICE
Aroihdr IAROIHDRNot RequiredHIH-COMPANYARH-COMPANY, "I"ARH-TRANS-TYPE, HIH-INVOICEARH-INVOICE
Aroihdr MAROIHDRNot RequiredHIH-COMPANYARH-COMPANY, "M"ARH-TRANS-TYPE, HIH-INVOICEARH-INVOICE
ArproclevlARPROCLEVLNot RequiredHIH-COMPANYAPV-COMPANY, HIH-PROCESS-LEVELAPV-PROCESS-LEVEL
BilltoBILLTONot RequiredACO-CUST-GROUPABS-CUST-GROUP, HIH-CUSTOMERABS-CUSTOMER, HIH-BILL-TOABS-BILL-TO
CustdescCUSTDESCNot RequiredACO-CUST-GROUPCUD-CUST-GROUP, HIH-CUSTOMERCUD-CUSTOMER

One to many (7) — child tables

RelationTableRulesConditionField map
AchistcnslACHISTCNSLHIH-OBJ-IDIHC-OBJ-ID, IHC-LINE-NBR
AchistdtlACHISTDTLHIH-OBJ-IDHDT-OBJ-ID, HDT-PT-ACTIVITY, HDT-ACCT-CATEGORY, HDT-LINE-NBR
AchistgmACHISTGMHIH-OBJ-IDIHG-HIH-OBJ-ID, IHG-CONTRACT-ACTVY, IHG-RECORD-TYPE, IHG-ACTIVITY
AchisttaxACHISTTAXHIH-OBJ-IDHIT-OBJ-ID, HIT-HDT-LINE-NBR, HIT-SEQ-NBR
AcinvauditACINVAUDITHIH-OBJ-IDIVA-OBJ-ID, IVA-LINE-NBR, IVA-TRANS-DATE, IVA-SEQUENCE-NBR
AcinvordACINVORDHIH-OBJ-IDAIO-HIH-OBJ-ID, AIO-CONTRACT
AcproadjACPROADJHIH-OBJ-IDBRJ-HIH-OBJ-ID, BRJ-LINE-NBR-MAP, BRJ-ADJ-LEVEL, BRJ-REASON-CODE

Programs

Updated by (18)

Referenced by (18)