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 descriptionType / EDT / enumMandatoryReferencesIn public entities
DefinitionGroupName of the processing group for the import job.String (60)
DMFDefinitionGroupName
YesNone
ExecutionIdID of the import job that created the row.String (90)
DMFExecutionId
YesNone
InvoiceIdentifierNumeric identifier of the invoice row, and part of the key.Int64NoNone
AdjustingInvoiceDateDate of the adjusting invoice.low confidenceDate
TransDate
NoNone
BankAccountIdCustomer bank account for the invoice. Points to CustBankAccount, together with the invoice account.String
CustBankAccountId
NoCustBankAccount.AccountIDNone
BillingClassificationBilling classification text.String (15)
BillingClassification
NoNone
CashDiscountCash discount code. Points to CashDisc.String
CustCashDiscCode
NoCashDisc.CashDiscCodeNone
CashDiscountDateDate for the cash discount.Date
CustCashDiscDate
NoNone
CashDiscountPercentageDiscount percentage.Real
DiscPct
NoNone
CashFlowForecastNumber that holds the cash flow forecast status.low confidenceInteger
CovStatus
NoNone
CentralBankPurposeCodeCentral bank payment purpose code. Points to BankCentralBankPurpose.String
BankCentralBankPurposeCode
NoBankCentralBankPurpose.CodeNone
CentralBankPurposeTextText that explains the central bank purpose.String (210)
BankCentralBankPurposeText
NoNone
ComplimentedInvoiceIdID of the invoice that this invoice complements or corrects.low confidenceString (50)
InvoiceId
NoNone
ContactPersonIdContact person for the invoice. Points to ContactPerson.String (20)
ContactPersonId
NoContactPerson.ContactPersonIdNone
CurrencyCodeCurrency code of the invoice. Points to Currency.String (3)
CustCurrencyCode
YesCurrency.CurrencyCodeNone
CustomerAccountCustomer account the invoice is for. Points to CustTable.String (20)
CustAccount
YesCustTable.AccountNumNone
CustomerReferenceReference text given by the customer.String (60)
CustRef
NoNone
CustomerRequisitionCustomer requisition or purchase order reference.String (20)
CustPurchaseOrder
NoNone
DirectDebitMandateReferenceDirect debit mandate ID. Points to CustDirectDebitMandate.String (35)
CustMandateId
NoCustDirectDebitMandate.MandateReferenceNone
DocumentDateDate of the source document.Date
DocumentDate
NoNone
DueDateDate the invoice is due.Date
DueDate
NoNone
EInvoiceAccountCodeDimension account code for the electronic invoice.String (35)
EInvoiceAccountCode
NoNone
EInvoiceIsLineSpecificYes/no flag that shows the electronic invoice setting is line-specific.Enum
EInvoiceLineSpecific
NoYes (enum)
NoNone
ExchangeRateExchange rate for the invoice.Real
CustExchRate
NoNone
FreeTextNumberFree text invoice number that links the row to the header entity.String (20)NoNone
GiroTypeType of payment slip or attachment linked to the customer invoice, such as FIK or blue slip.Enum
PaymentStubInvoiceId
PaymentStub (enum)
NoNone
InvoiceAccountCustomer account that receives the invoice. Points to CustTable.String (20)
CustInvoiceAccount
NoCustTable.AccountNumNone
InvoiceDateDate of the invoice.Date
TransDate
YesNone
InvoiceIdInvoice number.String (20)
CustInvoiceId
NoNone
InvoiceNameName shown on the invoice.String (100)
LogisticsInvoiceName
NoNone
IsLumpSumRecoveryTextPrintedYes/no flag for printing the lump sum recovery text. Used for France.Enum
PrintOverdueFineTxt_FR
NoYes (enum)
NoNone
IsOneTimeCustomerYes/no flag that shows the customer is a one-time customer.Enum
OneTimeCustomer
NoYes (enum)
NoNone
IsPostedYes/no flag that shows whether the invoice is posted.Enum
Posted
NoYes (enum)
NoNone
IsPostedViaIntercompanyYes/no flag that shows the invoice was posted through intercompany.Enum
InterCompanyPosted
NoYes (enum)
NoNone
IsSelectedYes/no flag that marks the row as selected.Enum
DMFIsSelected
NoYes (enum)
NoNone
LanguageIdLanguage of the invoice. Points to LanguageTable.String (7)
CustLanguageId
YesLanguageTable.LanguageIdNone
MethodOfPaymentPayment method for the invoice. Points to CustPaymModeTable.String
CustPaymMode
NoCustPaymModeTable.PaymModeNone
numberSequenceGroupNumber sequence group used for the invoice.String
NumberSequenceGroupId
NoNone
OverrideSalesTaxYes/no flag that lets the user replace the tax result chosen by tax calculation.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentSchedulePayment schedule for the invoice. Points to PaymSched.String (30)
PaymSchedId
NoPaymSched.NameNone
PaymentTermsBaseDateBase date used for the payment terms.Date
CashDiscBaseDate
NoNone
PaymentTermsBaseDaysNumber of base days used for the payment terms.Integer
CashDiscBaseDays
NoNone
PostingProfileCustomer posting profile. Points to CustLedger.String
CustPostingProfile
NoCustLedger.PostingProfileNone
PostponedVATYes/no flag for postponed VAT. Used for Czech Republic.Enum
CzPostponeVAT
NoYes (enum)
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SalesDateSales date of the invoice.Date
SalesDate_W
NoNone
SalesTaxGroupIdSales tax group for the invoice. Points to TaxGroupHeading.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
SalesTaxItemGroupIdItem sales tax group. Points to TaxItemGroupHeading.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TermsOfPaymentPayment terms for the invoice. Points to PaymTerm.String (100)
CustPaymTermId
NoPaymTerm.PaymTermIdNone
TransferStatusStatus of moving the row from staging to the target, such as not started, completed or error.Enum
DMFTransferStatus (enum)
NoNone
TransportationDocumentLineIdGUID that identifies a transportation document line.low confidenceGuid
SysGuid
NoNone
VatDueDateDate of the VAT register entry.Date
VatDueDate_W
NoNone

Indexes (1)

Relations (16)

Each relation joins FreeTextInvoiceHeaderStaging to another table on the fields shown.

  • BankCentralBankPurpose → BankCentralBankPurpose

    Join on CentralBankPurposeCode = BankCentralBankPurpose.Code

    Many FreeTextInvoiceHeaderStaging records → zero or one BankCentralBankPurpose record

  • CashDisc → CashDisc

    Join on CashDiscount = CashDisc.CashDiscCode

    Many FreeTextInvoiceHeaderStaging records → zero or one CashDisc record

  • ContactPerson → ContactPerson

    Join on ContactPersonId = ContactPerson.ContactPersonId

    Many FreeTextInvoiceHeaderStaging records → zero or one ContactPerson record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many FreeTextInvoiceHeaderStaging records → exactly one Currency record

  • CustBankAccount → CustBankAccount

    Join on InvoiceAccount = CustBankAccount.CustAccount, BankAccountId = CustBankAccount.AccountID

    Many FreeTextInvoiceHeaderStaging records → zero or one CustBankAccount record

  • CustLedger → CustLedger

    Join on PostingProfile = CustLedger.PostingProfile

    Many FreeTextInvoiceHeaderStaging records → zero or one CustLedger record

  • CustPaymModeTable → CustPaymModeTable

    Join on MethodOfPayment = CustPaymModeTable.PaymMode

    Many FreeTextInvoiceHeaderStaging records → zero or one CustPaymModeTable record

  • CustTable_InvoiceAmount → CustTable

    Join on InvoiceAccount = CustTable.AccountNum

    Many FreeTextInvoiceHeaderStaging records → exactly one CustTable record

  • CustTable_OrderAmount → CustTable

    Join on CustomerAccount = CustTable.AccountNum

    Many FreeTextInvoiceHeaderStaging records → exactly one CustTable record

  • LanguageTable → LanguageTable

    Join on LanguageId = LanguageTable.LanguageId, LanguageTable.LabelFile = 1

    Many FreeTextInvoiceHeaderStaging records → exactly one LanguageTable record

  • PaymentSched → PaymSched

    Join on PaymentSchedule = PaymSched.Name

    Many FreeTextInvoiceHeaderStaging records → zero or one PaymSched record

  • PaymTerm → PaymTerm

    Join on TermsOfPayment = PaymTerm.PaymTermId

    Many FreeTextInvoiceHeaderStaging records → zero or one PaymTerm record

  • TaxGroupHeading → TaxGroupHeading

    Join on SalesTaxGroupId = TaxGroupHeading.TaxGroup

    Many FreeTextInvoiceHeaderStaging records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on SalesTaxItemGroupId = TaxItemGroupHeading.TaxItemGroup

    Many FreeTextInvoiceHeaderStaging records → zero or one TaxItemGroupHeading record

  • FreeTextNumber → FreeTextInvoiceHeaderEntity

    Join on FreeTextNumber = FreeTextInvoiceHeaderEntity.FreeTextNumber

    Many FreeTextInvoiceHeaderStaging records → zero or one FreeTextInvoiceHeaderEntity record

  • DirectDebitMandateReference → CustDirectDebitMandate

    Join on DirectDebitMandateReference = CustDirectDebitMandate.MandateReference

    Many 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.

Email sales@drdynamics.co.uk