Table

CustInvoiceTableHistory

CustInvoiceTable history data

History copy of customer free text invoice headers. It holds customer, payment, address, tax, workflow and dimension data, plus many country-specific fields. It has no defined key.

Table name
CustInvoiceTableHistory
Module
Accounts receivable
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasic
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (160)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingDistributionTemplateAccounting distribution template for the invoice.Int64
AccountingDistributionTemplateRecId
NoNone
AdjustingInvoiceDateDate of the invoice being adjusted.Date
TransDate
NoNone
AgreementHeaderExt_RUAgreement record, used for Russia.Int64
AgreementHeaderExtRecId_RU
NoNone
BankAccount_LVPrimary company bank account, used for Latvia.String
CompanyBankAccountId
NoNone
BankCentralBankPurposeCodePurpose code required by the central bank.String
BankCentralBankPurposeCode
NoNone
BankCentralBankPurposeTextText describing the central bank purpose.String (210)
BankCentralBankPurposeText
NoNone
CashDiscBaseDateBase date used for payment terms.Date
CashDiscBaseDate
NoNone
CashDiscBaseDaysNumber of base days for payment terms.Integer
CashDiscBaseDays
NoNone
CashDiscCodeCash discount code.String
CustCashDiscCode
NoNone
CashDiscDateDate by which the cash discount applies.Date
CustCashDiscDate
NoNone
CashDiscPercentDiscount percentage.Real
DiscPct
NoNone
CertificateNumber_MXCertificate number of the document, used for Mexico.String (40)
CertificateNumber_MX
NoNone
CFDIEInvoicePeriod_MXElectronic invoice period, used for Mexico. Values from daily to bimonthly.Enum
RetailEInvoicePeriod_MX (enum)
NoNone
CFDITemporaryExport_MXYes/No flag: temporary export, used for Mexico.Enum
CFDITemporaryExport_MX
NoYes (enum)
NoNone
CFOPTable_BRCFOP fiscal operation code record, used for Brazil.Int64
RefRecId
NoNone
CFPSId_BRCFPS code, used for Brazil.String (4)
CFPSId_BR
NoNone
ComplementedInvoiceIdInvoice that this invoice complements.String (50)
InvoiceId
NoNone
ConsigneeAccount_RUConsignee customer account, used for Russia.String (20)
CustAccountConsignee_RU
NoNone
ConsignorAccount_RUShipper account, used for Russia.String (20)
VendAccountConsignor_RU
NoNone
ContactPersonIdContact person for the invoice.String (20)
ContactPersonId
NoNone
Correct_RUYes/No flag: corrective document, used for Russia.Enum
Correct_RU
NoYes (enum)
NoNone
CorrectedFactureDate_RUDate of the corrected facture, used for Russia.Date
FactureDate_RU
NoNone
CorrectedFactureExternalId_RUExternal ID of the corrected facture, used for Russia.String (30)
FactureExternalId_RU
NoNone
CorrectedInvoiceDate_RUDate of the corrected invoice, used for Russia.Date
CorrectedInvoiceDate_RU
NoNone
CorrectedInvoiceId_RUID of the corrected invoice, used for Russia.String (50)
CorrectedInvoiceId_RU
NoNone
CorrectedPeriod_RUPeriod that is corrected, used for Russia.Date
TransDate
NoNone
CorrectionReasonCodeReason record for the correction.Int64
ReasonRefRecID
NoNone
CorrectionType_RUType of correction, used for Russia. Values: none, correction, revision.Enum
FactureCorrectionType_RU (enum)
NoNone
CovStatusCash flow forecast status as a number.low confidenceInteger
CovStatus
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurBankAccount_LVBank code for an additional currency, used for Latvia.String
CompanyBankAccountId
NoNone
CurrencyCodeCurrency of the invoice.String (3)
CustCurrencyCode
YesNone
CustBankAccount_LVCustomer bank accounts, used for Latvia.String
CustBankAccountId
NoNone
CustBankAccountIdCustomer bank account.String
CustBankAccountId
NoNone
CustBillingClassificationBilling classification record.Int64
RefRecId
NoNone
CustFinalUser_BRYes/No flag: customer is the final user, used for Brazil.Enum
CustVendFinalUser_BR
NoYes (enum)
NoNone
CustGroupCustomer group.String
CustGroupId
YesNone
CustomerInvoiceOriginIdOrigin of the invoice.String
CustomerInvoiceOriginId
NoNone
CustomerRefCustomer's own reference text.String (60)
CustRef
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension set.Int64
LedgerDimensionValueSet
NoNone
DeliveryDate_ESDelivery date, used for Spain.Date
LedgerJournalDlvDate_ES
NoNone
DeliveryLocationDelivery location record.Int64
LogisticsLocationRecId
NoNone
DeliveryPostalAddressDelivery address record.Int64
LogisticsPostalAddressRecId
NoNone
DirectDebitMandateDirect debit mandate record.Int64
CustDirectDebitMandateRecId
NoNone
DlvTermDelivery terms code.String
CustDlvTermId
NoNone
DocNumberingCode_LTDocument numbering code, used for Lithuania.String
LtDocNumberingCode
NoNone
DocumentDateDate of the document.Date
DocumentDate
NoNone
DueDateDate the payment is due.Date
DueDate
NoNone
EInvoiceAccountCodeAccount code used in electronic invoicing.String (35)
EInvoiceAccountCode
NoNone
EInvoiceCFDIConfirmNumber_MXConfirmation number for the electronic invoice, used for Mexico.String (5)
EInvoiceCFDIConfirmNumber_MX
NoNone
EInvoiceLineSpecYes/No flag: electronic invoice is line-specific.Enum
EInvoiceLineSpecific
NoYes (enum)
NoNone
ElectronicInvoiceFrameworkType_FRElectronic invoice framework type record, used for France.Int64
RefRecId
NoNone
EnterpriseNumberEnterprise number of the party.String (50)
TaxEnterpriseNumber
NoNone
EstablishmentEstablishment within the company that applies to the document.Int64
EstablishmentRefRecId
NoNone
ExchRate_WExchange rate applied to the invoice.Real
CustExchRate
NoNone
ExcludeFromDecoupledPostingProcessYes/No flag: exclude the invoice from decoupled posting.Enum
NoYes (enum)
NoNone
ExternalInvoiceIdInvoice number from an external source.String (60)
CustomerExternalInvoiceId
NoNone
FineCode_BRFine code, used for Brazil.String
CustFineCode_BR
NoNone
FinTagFinancial tag record.Int64
FinTagRecId
NoNone
FiscalAddress_MXCountry or region of the fiscal address, used for Mexico.String
LogisticsAddressCountryRegionId
NoNone
FiscalDocType_PLType of printed document, used for Poland. Values: invoice, fiscal document.Enum
PlFiscalDocType (enum)
NoNone
FiscalDocumentType_BRFiscal document type record, used for Brazil.Int64
FiscalDocumentTypeRecID_BR
NoNone
FiscalEstablishment_BRFiscal establishment record, used for Brazil.Int64
FiscalEstablishmentRecId_BR
NoNone
ForeignTrade_MXYes/No flag: foreign trade operation, used for Mexico.Enum
ForeignTrade_MX
NoYes (enum)
NoNone
ForInterestAdjustmentYes/No flag with no label. Purpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
GiroTypeKind of payment slip attached to the invoice. Values include FIK, BBS, blue slip and red slip.Enum
PaymentStubInvoiceId
PaymentStub (enum)
NoNone
InclTaxYes/No flag: prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
InclTax_WYes/No flag: prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
IntentLetterId_ITInternal number of the intent letter, used for Italy.String
IntentLetterInternalId_IT
NoNone
InterCompanyPostedYes/No flag: posted through intercompany.Enum
InterCompanyPosted
NoYes (enum)
NoNone
InterestCode_BRInterest code, used for Brazil.String
CustInterestCode_BR
NoNone
IntrastatFulfillmentDate_HUIntrastat fulfilment date, used for Hungary.Date
IntrastatFulfillmentDate_HU
NoNone
InvoiceAccountCustomer account that is invoiced.String (20)
CustInvoiceAccount
YesNone
InvoiceComplementaryTypeType of complementary fiscal document, used for Brazil. Values: none, price, tax.Enum
InvoiceComplementaryType_BR (enum)
NoNone
InvoiceDateDate of the invoice.Date
TransDate
YesNone
InvoiceIdIdentifier of the invoice.String (20)
CustInvoiceId
NoNone
InvoiceType_WInvoice type. Values: tax invoice, simplified invoice.Enum
InvoiceType_W (enum)
NoNone
LanguageIdLanguage of the invoice.String (7)
CustLanguageId
YesNone
ListcodeList code for EU trade reporting, such as EU trade or triangular trade.Enum
ListcodeId
Listcode (enum)
NoNone
LogLog text.low confidenceString (255)
LogText
NoNone
ManualInvoiceID_WManually assigned invoice number.String (50)
InvoiceId
NoNone
ManualNumbering_WYes/No flag: invoice numbering setting, used for Lithuania.Enum
LtInvoiceAutoNumbering
NoYes (enum)
NoNone
MCRGiftCardYes/No flag: gift card.Enum
NoYes (enum)
NoNone
MCRLedgerVoucherLedger voucher number.String (20)
Voucher
NoNone
MCRNumberSequenceCodeNumber sequence code.String
NumberSequenceCode
NoNone
MCRSalesIDRelated sales order.String (20)
SalesIdBase
NoNone
NameName shown on the invoice.String (100)
LogisticsInvoiceName
NoNone
NatureOfAssessee_INType of assessee, used for India. Values include company, firm and individual.Enum
NatureOfAssessee_IN (enum)
NoNone
NonRealRevenue_RUYes/No flag: unrealised revenue, used for Russia.Enum
NonRealRevenue_RU
NoYes (enum)
NoNone
numberSequenceGroupNumber sequence group.String
NumberSequenceGroupId
NoNone
NumRegIdTrib_MXTax registration number of the country of residence, used for Mexico.String (40)
NumRegIdTrib_MX
NoNone
OneTimeCustomerYes/No flag: one-time customer.Enum
OneTimeCustomer
NoYes (enum)
NoNone
OrderAccountCustomer account that ordered.String (20)
CustAccount
YesNone
OrderAccountRefRecIdRecord reference for the order account.Int64
RefRecId
NoNone
OverrideSalesTaxYes/No flag: override the sales tax determination.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
PackedExtensionsPacked container with extension data.low confidenceContainer
SysExtensionSerializerPackedContainer
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentTerms of payment.String (100)
CustPaymTermId
NoNone
PaymentSchedPayment schedule.String (30)
PaymSchedId
NoNone
PaymModeMethod of payment.String
CustPaymMode
NoNone
PaymSpecPayment specification.String
PaymSpec
NoNone
PortPort for Intrastat reporting.String
IntrastatPortId
NoNone
PostalAddressInvoice address record.Int64
LogisticsPostalAddressRecId
NoNone
PostedYes/No flag: invoice is posted.Enum
Posted
NoYes (enum)
NoNone
PostingProfileCustomer posting profile.String
CustPostingProfile
NoNone
PostponeVATYes/No flag: postponed VAT, used for Czech Republic.Enum
CzPostponeVAT
NoYes (enum)
NoNone
PresenceType_BRBuyer presence type, used for Brazil. Values: in person, internet, telesales and others.Enum
EFDocPresenceType_BR (enum)
NoNone
PrintDynamicQRCode_INYes/No flag: print a dynamic QR code on the invoice, used for India.Enum
PrintDynamicQRCode_IN
NoYes (enum)
NoNone
PrintOverdueFineTxt_FRYes/No flag: print lump sum recovery text, used for France.Enum
PrintOverdueFineTxt_FR
NoYes (enum)
NoNone
ProjectManager_FRProject manager account, used for France.String (20)
CustAccount
NoNone
ProjIntercompanyCompany selected for project intercompany use.low confidenceString
SelectableDataArea
NoNone
ProvisionalAssessment_INYes/No flag: amount set by provisional assessment, used for India.Enum
NoYesId
NoYes (enum)
NoNone
PurchOrderFormNumCustomer requisition number.String (20)
CustPurchaseOrder
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
ReleaseDateDate and time of release.UtcDateTime
PostReleaseDate
NoNone
SalesDate_WSales date.Date
SalesDate_W
NoNone
SalesIdRelated sales order.String (20)
SalesId
NoNone
SalesPurchOperationType_BROperation type record, used for Brazil.Int64
SalesPurchOperationTypeRecId_BR
NoNone
SATIncotermCode_MXIncoterm code, used for Mexico.String
SATIncoterm_MX
NoNone
SATPaymMethod_MXPayment type code, used for Mexico.String
SATPaymMethod_MX
NoNone
SATPurpose_MXPurpose code, used for Mexico.String
SATPurpose_MX
NoNone
ServiceCode_FRService code of the invoice account, used for France.String (100)
BusinessDocInvoiceAccountServiceCode_FR
NoNone
ServiceCodeOnDlvAddress_BRYes/No flag: service code taken from the delivery address, used for Brazil.Enum
TaxServiceCodeOnDlvAddress_BR
NoYes (enum)
NoNone
ServiceCodeRefRecIdRecord reference for the service code.Int64
BusinessDocChorusProServiceCodeRefRecId
NoNone
SourceCertificate_MXYes/No flag: source certificate, used for Mexico.Enum
SourceCertificate_MX
NoYes (enum)
NoNone
SourceDocumentHeaderSource document header record.Int64
RefRecId
NoNone
SourceDocumentLineSource document line record.Int64
RefRecId
NoNone
StatProcIdStatistics procedure for Intrastat.String
IntrastatProcId
NoNone
SubLedgerJournalStatusSubledger journal status. Values: required, processing, completed.Enum
SubLedgerJournalStatus (enum)
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TAMDeductionIDDeduction ID.String (20)
TAMDeductionID
NoNone
TAMRebateTransIdRebate transaction number.String (20)
TAMRebateTransId
NoNone
TaxGroupSales tax group.String
TaxGroup
NoNone
TaxIdTax registration number record.Int64
TaxRegistrationRecId
NoNone
TaxInvoiceTransactionCode_IDTransaction code on the tax invoice, used for Indonesia.String (2)
TaxInvoiceTransactionCode_ID
NoNone
TaxItemGroupItem sales tax group.String
TaxItemGroup
NoNone
TaxPeriodPaymentCode_PLVAT report date code, used for Poland.String
PlTaxPeriodPaymentCode
NoNone
TaxWithholdCalculateYes/No flag with no label. Likely relates to withholding tax calculation.low confidenceEnum
NoYes (enum)
NoNone
TCSGroup_INTax collected at source group, used for India.String
TaxWithholdGroup
NoNone
TDSGroup_INTax deducted at source group, used for India.String
TaxWithholdGroup
NoNone
TouchedYes/No flag: update marker.low confidenceEnum
TradeTouched
NoYes (enum)
NoNone
TransactionCodeTransaction code for Intrastat.String
IntrastatTransactionCodeId
NoNone
TransportTransport method for Intrastat.String
IntrastatTransport
NoNone
TransportationDocumentTransportation details record.Int64
TransportationDocumentRecId
NoNone
UnitedVATInvoice_LTYes/No flag: united VAT invoice, used for Lithuania.Enum
UnitedVATInvoice_LT
NoYes (enum)
NoNone
UseDefaultFromCustomerSource of defaults for recurring invoices. Values: free text invoice template, customer account.Enum
CustRecurrenceInvoiceDefaultType (enum)
NoNone
VatDueDate_WDate of the VAT register entry.Date
VatDueDate_W
NoNone
VATNumTax exempt number.String (20)
VATNumJournal
NoNone
VATNumRecIdRecord reference for the tax exempt number.Int64
RefRecId
NoNone
VATNumTableTypeSource type of the tax exempt number. Values: none, tax registration, VAT number table.Enum
TaxExemptNumberSourceType (enum)
NoNone
VATOnPayment_RUYes/No flag: VAT on payment, used for Russia.Enum
VATOnPayment_RU
NoYes (enum)
NoNone
WithIGSTPayment_INYes/No flag: with tax payment, used for India.Enum
NoYesId
NoYes (enum)
NoNone
WorkerSalesTakerWorker who is the recipient or sales taker.Int64
SalesTaker
NoNone
WorkflowApprovalStateApproval state of the invoice workflow, such as draft, submitted or approved.Enum
CustFreeInvoiceWFApprovalState (enum)
NoNone
WorkflowApprovalStatusWorkflow status of the invoice, such as submitted, rejected or cancellation.Enum
CustFreeInvoiceWFApprovalStatus (enum)
NoNone
WouldYouClaimRefund_INYes/No flag: whether a refund is claimed, used for India.Enum
NoYesId
NoYes (enum)
NoNone

Indexes (2)

Get this data out

No public entity reads from CustInvoiceTableHistory. Its data is only reachable through the application, a custom entity or a database export.

Need help with CustInvoiceTableHistory in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk