Table
FreeTextInvoiceHeaderStaging
Customer free text invoice
Staging table for importing customer free text invoice headers. Rows are keyed by processing group, job ID and invoice identifier. It carries the customer, payment, tax and currency details of each invoice, and it relates to FreeTextInvoiceHeaderEntity.
- Table name
FreeTextInvoiceHeaderStaging- Module
Cross-module and platform- Table group
Staging- Table type
Regular- Data per company
No- Configuration key
LedgerBasic- Primary index
StagingIdx- Replacement key
StagingIdx- Key fields
DefinitionGroup, ExecutionId, InvoiceIdentifier- Model
Foundation
Fields (55)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DefinitionGroupName of the processing group for the import job. | String (60)DMFDefinitionGroupName | Yes | None | |
ExecutionIdID of the import job that created the row. | String (90)DMFExecutionId | Yes | None | |
InvoiceIdentifierNumeric identifier of the invoice row, and part of the key. | Int64 | No | None | |
AdjustingInvoiceDateDate of the adjusting invoice.low confidence | DateTransDate | No | None | |
BankAccountIdCustomer bank account for the invoice. Points to CustBankAccount, together with the invoice account. | StringCustBankAccountId | No | CustBankAccount.AccountID | None |
BillingClassificationBilling classification text. | String (15)BillingClassification | No | None | |
CashDiscountCash discount code. Points to CashDisc. | StringCustCashDiscCode | No | CashDisc.CashDiscCode | None |
CashDiscountDateDate for the cash discount. | DateCustCashDiscDate | No | None | |
CashDiscountPercentageDiscount percentage. | RealDiscPct | No | None | |
CashFlowForecastNumber that holds the cash flow forecast status.low confidence | IntegerCovStatus | No | None | |
CentralBankPurposeCodeCentral bank payment purpose code. Points to BankCentralBankPurpose. | StringBankCentralBankPurposeCode | No | BankCentralBankPurpose.Code | None |
CentralBankPurposeTextText that explains the central bank purpose. | String (210)BankCentralBankPurposeText | No | None | |
ComplimentedInvoiceIdID of the invoice that this invoice complements or corrects.low confidence | String (50)InvoiceId | No | None | |
ContactPersonIdContact person for the invoice. Points to ContactPerson. | String (20)ContactPersonId | No | ContactPerson.ContactPersonId | None |
CurrencyCodeCurrency code of the invoice. Points to Currency. | String (3)CustCurrencyCode | Yes | Currency.CurrencyCode | None |
CustomerAccountCustomer account the invoice is for. Points to CustTable. | String (20)CustAccount | Yes | CustTable.AccountNum | None |
CustomerReferenceReference text given by the customer. | String (60)CustRef | No | None | |
CustomerRequisitionCustomer requisition or purchase order reference. | String (20)CustPurchaseOrder | No | None | |
DirectDebitMandateReferenceDirect debit mandate ID. Points to CustDirectDebitMandate. | String (35)CustMandateId | No | CustDirectDebitMandate.MandateReference | None |
DocumentDateDate of the source document. | DateDocumentDate | No | None | |
DueDateDate the invoice is due. | DateDueDate | No | None | |
EInvoiceAccountCodeDimension account code for the electronic invoice. | String (35)EInvoiceAccountCode | No | None | |
EInvoiceIsLineSpecificYes/no flag that shows the electronic invoice setting is line-specific. | EnumEInvoiceLineSpecificNoYes (enum) | No | None | |
ExchangeRateExchange rate for the invoice. | RealCustExchRate | No | None | |
FreeTextNumberFree text invoice number that links the row to the header entity. | String (20) | No | None | |
GiroTypeType of payment slip or attachment linked to the customer invoice, such as FIK or blue slip. | EnumPaymentStubInvoiceIdPaymentStub (enum) | No | None | |
InvoiceAccountCustomer account that receives the invoice. Points to CustTable. | String (20)CustInvoiceAccount | No | CustTable.AccountNum | None |
InvoiceDateDate of the invoice. | DateTransDate | Yes | None | |
InvoiceIdInvoice number. | String (20)CustInvoiceId | No | None | |
InvoiceNameName shown on the invoice. | String (100)LogisticsInvoiceName | No | None | |
IsLumpSumRecoveryTextPrintedYes/no flag for printing the lump sum recovery text. Used for France. | EnumPrintOverdueFineTxt_FRNoYes (enum) | No | None | |
IsOneTimeCustomerYes/no flag that shows the customer is a one-time customer. | EnumOneTimeCustomerNoYes (enum) | No | None | |
IsPostedYes/no flag that shows whether the invoice is posted. | EnumPostedNoYes (enum) | No | None | |
IsPostedViaIntercompanyYes/no flag that shows the invoice was posted through intercompany. | EnumInterCompanyPostedNoYes (enum) | No | None | |
IsSelectedYes/no flag that marks the row as selected. | EnumDMFIsSelectedNoYes (enum) | No | None | |
LanguageIdLanguage of the invoice. Points to LanguageTable. | String (7)CustLanguageId | Yes | LanguageTable.LanguageId | None |
MethodOfPaymentPayment method for the invoice. Points to CustPaymModeTable. | StringCustPaymMode | No | CustPaymModeTable.PaymMode | None |
numberSequenceGroupNumber sequence group used for the invoice. | StringNumberSequenceGroupId | No | None | |
OverrideSalesTaxYes/no flag that lets the user replace the tax result chosen by tax calculation. | EnumTaxIntegrationOverrideSalesTaxNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentSchedulePayment schedule for the invoice. Points to PaymSched. | String (30)PaymSchedId | No | PaymSched.Name | None |
PaymentTermsBaseDateBase date used for the payment terms. | DateCashDiscBaseDate | No | None | |
PaymentTermsBaseDaysNumber of base days used for the payment terms. | IntegerCashDiscBaseDays | No | None | |
PostingProfileCustomer posting profile. Points to CustLedger. | StringCustPostingProfile | No | CustLedger.PostingProfile | None |
PostponedVATYes/no flag for postponed VAT. Used for Czech Republic. | EnumCzPostponeVATNoYes (enum) | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SalesDateSales date of the invoice. | DateSalesDate_W | No | None | |
SalesTaxGroupIdSales tax group for the invoice. Points to TaxGroupHeading. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
SalesTaxItemGroupIdItem sales tax group. Points to TaxItemGroupHeading. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TermsOfPaymentPayment terms for the invoice. Points to PaymTerm. | String (100)CustPaymTermId | No | PaymTerm.PaymTermId | None |
TransferStatusStatus of moving the row from staging to the target, such as not started, completed or error. | EnumDMFTransferStatus (enum) | No | None | |
TransportationDocumentLineIdGUID that identifies a transportation document line.low confidence | GuidSysGuid | No | None | |
VatDueDateDate of the VAT register entry. | DateVatDueDate_W | No | None |
Indexes (1)
StagingIdxPrimary indexReplacement keyDefinitionGroup,ExecutionId,InvoiceIdentifierUnique, alternate key.
Relations (16)
Each relation joins FreeTextInvoiceHeaderStaging to another table on the fields shown.
BankCentralBankPurpose→BankCentralBankPurposeJoin on
CentralBankPurposeCode = BankCentralBankPurpose.CodeMany FreeTextInvoiceHeaderStaging records → zero or one BankCentralBankPurpose record
CashDisc→CashDiscJoin on
CashDiscount = CashDisc.CashDiscCodeMany FreeTextInvoiceHeaderStaging records → zero or one CashDisc record
ContactPerson→ContactPersonJoin on
ContactPersonId = ContactPerson.ContactPersonIdMany FreeTextInvoiceHeaderStaging records → zero or one ContactPerson record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany FreeTextInvoiceHeaderStaging records → exactly one Currency record
CustBankAccount→CustBankAccountJoin on
InvoiceAccount = CustBankAccount.CustAccount,BankAccountId = CustBankAccount.AccountIDMany FreeTextInvoiceHeaderStaging records → zero or one CustBankAccount record
CustLedger→CustLedgerJoin on
PostingProfile = CustLedger.PostingProfileMany FreeTextInvoiceHeaderStaging records → zero or one CustLedger record
CustPaymModeTable→CustPaymModeTableJoin on
MethodOfPayment = CustPaymModeTable.PaymModeMany FreeTextInvoiceHeaderStaging records → zero or one CustPaymModeTable record
CustTable_InvoiceAmount→CustTableJoin on
InvoiceAccount = CustTable.AccountNumMany FreeTextInvoiceHeaderStaging records → exactly one CustTable record
CustTable_OrderAmount→CustTableJoin on
CustomerAccount = CustTable.AccountNumMany FreeTextInvoiceHeaderStaging records → exactly one CustTable record
LanguageTable→LanguageTableJoin on
LanguageId = LanguageTable.LanguageId,LanguageTable.LabelFile = 1Many FreeTextInvoiceHeaderStaging records → exactly one LanguageTable record
PaymentSched→PaymSchedJoin on
PaymentSchedule = PaymSched.NameMany FreeTextInvoiceHeaderStaging records → zero or one PaymSched record
PaymTerm→PaymTermJoin on
TermsOfPayment = PaymTerm.PaymTermIdMany FreeTextInvoiceHeaderStaging records → zero or one PaymTerm record
TaxGroupHeading→TaxGroupHeadingJoin on
SalesTaxGroupId = TaxGroupHeading.TaxGroupMany FreeTextInvoiceHeaderStaging records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
SalesTaxItemGroupId = TaxItemGroupHeading.TaxItemGroupMany FreeTextInvoiceHeaderStaging records → zero or one TaxItemGroupHeading record
FreeTextNumber→FreeTextInvoiceHeaderEntityJoin on
FreeTextNumber = FreeTextInvoiceHeaderEntity.FreeTextNumberMany FreeTextInvoiceHeaderStaging records → zero or one FreeTextInvoiceHeaderEntity record
DirectDebitMandateReference→CustDirectDebitMandateJoin on
DirectDebitMandateReference = CustDirectDebitMandate.MandateReferenceMany FreeTextInvoiceHeaderStaging records → zero or one CustDirectDebitMandate record
Get this data out
No public entity reads from FreeTextInvoiceHeaderStaging. Its data is only reachable through the application, a custom entity or a database export.
Need help with FreeTextInvoiceHeaderStaging in a report, an integration or a migration? Talk to Dr Dynamics.