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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingDistributionTemplateAccounting distribution template for the invoice. | Int64AccountingDistributionTemplateRecId | No | None | |
AdjustingInvoiceDateDate of the invoice being adjusted. | DateTransDate | No | None | |
AgreementHeaderExt_RUAgreement record, used for Russia. | Int64AgreementHeaderExtRecId_RU | No | None | |
BankAccount_LVPrimary company bank account, used for Latvia. | StringCompanyBankAccountId | No | None | |
BankCentralBankPurposeCodePurpose code required by the central bank. | StringBankCentralBankPurposeCode | No | None | |
BankCentralBankPurposeTextText describing the central bank purpose. | String (210)BankCentralBankPurposeText | No | None | |
CashDiscBaseDateBase date used for payment terms. | DateCashDiscBaseDate | No | None | |
CashDiscBaseDaysNumber of base days for payment terms. | IntegerCashDiscBaseDays | No | None | |
CashDiscCodeCash discount code. | StringCustCashDiscCode | No | None | |
CashDiscDateDate by which the cash discount applies. | DateCustCashDiscDate | No | None | |
CashDiscPercentDiscount percentage. | RealDiscPct | No | None | |
CertificateNumber_MXCertificate number of the document, used for Mexico. | String (40)CertificateNumber_MX | No | None | |
CFDIEInvoicePeriod_MXElectronic invoice period, used for Mexico. Values from daily to bimonthly. | EnumRetailEInvoicePeriod_MX (enum) | No | None | |
CFDITemporaryExport_MXYes/No flag: temporary export, used for Mexico. | EnumCFDITemporaryExport_MXNoYes (enum) | No | None | |
CFOPTable_BRCFOP fiscal operation code record, used for Brazil. | Int64RefRecId | No | None | |
CFPSId_BRCFPS code, used for Brazil. | String (4)CFPSId_BR | No | None | |
ComplementedInvoiceIdInvoice that this invoice complements. | String (50)InvoiceId | No | None | |
ConsigneeAccount_RUConsignee customer account, used for Russia. | String (20)CustAccountConsignee_RU | No | None | |
ConsignorAccount_RUShipper account, used for Russia. | String (20)VendAccountConsignor_RU | No | None | |
ContactPersonIdContact person for the invoice. | String (20)ContactPersonId | No | None | |
Correct_RUYes/No flag: corrective document, used for Russia. | EnumCorrect_RUNoYes (enum) | No | None | |
CorrectedFactureDate_RUDate of the corrected facture, used for Russia. | DateFactureDate_RU | No | None | |
CorrectedFactureExternalId_RUExternal ID of the corrected facture, used for Russia. | String (30)FactureExternalId_RU | No | None | |
CorrectedInvoiceDate_RUDate of the corrected invoice, used for Russia. | DateCorrectedInvoiceDate_RU | No | None | |
CorrectedInvoiceId_RUID of the corrected invoice, used for Russia. | String (50)CorrectedInvoiceId_RU | No | None | |
CorrectedPeriod_RUPeriod that is corrected, used for Russia. | DateTransDate | No | None | |
CorrectionReasonCodeReason record for the correction. | Int64ReasonRefRecID | No | None | |
CorrectionType_RUType of correction, used for Russia. Values: none, correction, revision. | EnumFactureCorrectionType_RU (enum) | No | None | |
CovStatusCash flow forecast status as a number.low confidence | IntegerCovStatus | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurBankAccount_LVBank code for an additional currency, used for Latvia. | StringCompanyBankAccountId | No | None | |
CurrencyCodeCurrency of the invoice. | String (3)CustCurrencyCode | Yes | None | |
CustBankAccount_LVCustomer bank accounts, used for Latvia. | StringCustBankAccountId | No | None | |
CustBankAccountIdCustomer bank account. | StringCustBankAccountId | No | None | |
CustBillingClassificationBilling classification record. | Int64RefRecId | No | None | |
CustFinalUser_BRYes/No flag: customer is the final user, used for Brazil. | EnumCustVendFinalUser_BRNoYes (enum) | No | None | |
CustGroupCustomer group. | StringCustGroupId | Yes | None | |
CustomerInvoiceOriginIdOrigin of the invoice. | StringCustomerInvoiceOriginId | No | None | |
CustomerRefCustomer's own reference text. | String (60)CustRef | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionDefault financial dimension set. | Int64LedgerDimensionValueSet | No | None | |
DeliveryDate_ESDelivery date, used for Spain. | DateLedgerJournalDlvDate_ES | No | None | |
DeliveryLocationDelivery location record. | Int64LogisticsLocationRecId | No | None | |
DeliveryPostalAddressDelivery address record. | Int64LogisticsPostalAddressRecId | No | None | |
DirectDebitMandateDirect debit mandate record. | Int64CustDirectDebitMandateRecId | No | None | |
DlvTermDelivery terms code. | StringCustDlvTermId | No | None | |
DocNumberingCode_LTDocument numbering code, used for Lithuania. | StringLtDocNumberingCode | No | None | |
DocumentDateDate of the document. | DateDocumentDate | No | None | |
DueDateDate the payment is due. | DateDueDate | No | None | |
EInvoiceAccountCodeAccount code used in electronic invoicing. | String (35)EInvoiceAccountCode | No | None | |
EInvoiceCFDIConfirmNumber_MXConfirmation number for the electronic invoice, used for Mexico. | String (5)EInvoiceCFDIConfirmNumber_MX | No | None | |
EInvoiceLineSpecYes/No flag: electronic invoice is line-specific. | EnumEInvoiceLineSpecificNoYes (enum) | No | None | |
ElectronicInvoiceFrameworkType_FRElectronic invoice framework type record, used for France. | Int64RefRecId | No | None | |
EnterpriseNumberEnterprise number of the party. | String (50)TaxEnterpriseNumber | No | None | |
EstablishmentEstablishment within the company that applies to the document. | Int64EstablishmentRefRecId | No | None | |
ExchRate_WExchange rate applied to the invoice. | RealCustExchRate | No | None | |
ExcludeFromDecoupledPostingProcessYes/No flag: exclude the invoice from decoupled posting. | EnumNoYes (enum) | No | None | |
ExternalInvoiceIdInvoice number from an external source. | String (60)CustomerExternalInvoiceId | No | None | |
FineCode_BRFine code, used for Brazil. | StringCustFineCode_BR | No | None | |
FinTagFinancial tag record. | Int64FinTagRecId | No | None | |
FiscalAddress_MXCountry or region of the fiscal address, used for Mexico. | StringLogisticsAddressCountryRegionId | No | None | |
FiscalDocType_PLType of printed document, used for Poland. Values: invoice, fiscal document. | EnumPlFiscalDocType (enum) | No | None | |
FiscalDocumentType_BRFiscal document type record, used for Brazil. | Int64FiscalDocumentTypeRecID_BR | No | None | |
FiscalEstablishment_BRFiscal establishment record, used for Brazil. | Int64FiscalEstablishmentRecId_BR | No | None | |
ForeignTrade_MXYes/No flag: foreign trade operation, used for Mexico. | EnumForeignTrade_MXNoYes (enum) | No | None | |
ForInterestAdjustmentYes/No flag with no label. Purpose not clear from the metadata.low confidence | EnumNoYes (enum) | No | None | |
GiroTypeKind of payment slip attached to the invoice. Values include FIK, BBS, blue slip and red slip. | EnumPaymentStubInvoiceIdPaymentStub (enum) | No | None | |
InclTaxYes/No flag: prices include sales tax. | EnumInclTaxNoYes (enum) | No | None | |
InclTax_WYes/No flag: prices include sales tax. | EnumInclTaxNoYes (enum) | No | None | |
IntentLetterId_ITInternal number of the intent letter, used for Italy. | StringIntentLetterInternalId_IT | No | None | |
InterCompanyPostedYes/No flag: posted through intercompany. | EnumInterCompanyPostedNoYes (enum) | No | None | |
InterestCode_BRInterest code, used for Brazil. | StringCustInterestCode_BR | No | None | |
IntrastatFulfillmentDate_HUIntrastat fulfilment date, used for Hungary. | DateIntrastatFulfillmentDate_HU | No | None | |
InvoiceAccountCustomer account that is invoiced. | String (20)CustInvoiceAccount | Yes | None | |
InvoiceComplementaryTypeType of complementary fiscal document, used for Brazil. Values: none, price, tax. | EnumInvoiceComplementaryType_BR (enum) | No | None | |
InvoiceDateDate of the invoice. | DateTransDate | Yes | None | |
InvoiceIdIdentifier of the invoice. | String (20)CustInvoiceId | No | None | |
InvoiceType_WInvoice type. Values: tax invoice, simplified invoice. | EnumInvoiceType_W (enum) | No | None | |
LanguageIdLanguage of the invoice. | String (7)CustLanguageId | Yes | None | |
ListcodeList code for EU trade reporting, such as EU trade or triangular trade. | EnumListcodeIdListcode (enum) | No | None | |
LogLog text.low confidence | String (255)LogText | No | None | |
ManualInvoiceID_WManually assigned invoice number. | String (50)InvoiceId | No | None | |
ManualNumbering_WYes/No flag: invoice numbering setting, used for Lithuania. | EnumLtInvoiceAutoNumberingNoYes (enum) | No | None | |
MCRGiftCardYes/No flag: gift card. | EnumNoYes (enum) | No | None | |
MCRLedgerVoucherLedger voucher number. | String (20)Voucher | No | None | |
MCRNumberSequenceCodeNumber sequence code. | StringNumberSequenceCode | No | None | |
MCRSalesIDRelated sales order. | String (20)SalesIdBase | No | None | |
NameName shown on the invoice. | String (100)LogisticsInvoiceName | No | None | |
NatureOfAssessee_INType of assessee, used for India. Values include company, firm and individual. | EnumNatureOfAssessee_IN (enum) | No | None | |
NonRealRevenue_RUYes/No flag: unrealised revenue, used for Russia. | EnumNonRealRevenue_RUNoYes (enum) | No | None | |
numberSequenceGroupNumber sequence group. | StringNumberSequenceGroupId | No | None | |
NumRegIdTrib_MXTax registration number of the country of residence, used for Mexico. | String (40)NumRegIdTrib_MX | No | None | |
OneTimeCustomerYes/No flag: one-time customer. | EnumOneTimeCustomerNoYes (enum) | No | None | |
OrderAccountCustomer account that ordered. | String (20)CustAccount | Yes | None | |
OrderAccountRefRecIdRecord reference for the order account. | Int64RefRecId | No | None | |
OverrideSalesTaxYes/No flag: override the sales tax determination. | EnumTaxIntegrationOverrideSalesTaxNoYes (enum) | No | None | |
PackedExtensionsPacked container with extension data.low confidence | ContainerSysExtensionSerializerPackedContainer | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentTerms of payment. | String (100)CustPaymTermId | No | None | |
PaymentSchedPayment schedule. | String (30)PaymSchedId | No | None | |
PaymModeMethod of payment. | StringCustPaymMode | No | None | |
PaymSpecPayment specification. | StringPaymSpec | No | None | |
PortPort for Intrastat reporting. | StringIntrastatPortId | No | None | |
PostalAddressInvoice address record. | Int64LogisticsPostalAddressRecId | No | None | |
PostedYes/No flag: invoice is posted. | EnumPostedNoYes (enum) | No | None | |
PostingProfileCustomer posting profile. | StringCustPostingProfile | No | None | |
PostponeVATYes/No flag: postponed VAT, used for Czech Republic. | EnumCzPostponeVATNoYes (enum) | No | None | |
PresenceType_BRBuyer presence type, used for Brazil. Values: in person, internet, telesales and others. | EnumEFDocPresenceType_BR (enum) | No | None | |
PrintDynamicQRCode_INYes/No flag: print a dynamic QR code on the invoice, used for India. | EnumPrintDynamicQRCode_INNoYes (enum) | No | None | |
PrintOverdueFineTxt_FRYes/No flag: print lump sum recovery text, used for France. | EnumPrintOverdueFineTxt_FRNoYes (enum) | No | None | |
ProjectManager_FRProject manager account, used for France. | String (20)CustAccount | No | None | |
ProjIntercompanyCompany selected for project intercompany use.low confidence | StringSelectableDataArea | No | None | |
ProvisionalAssessment_INYes/No flag: amount set by provisional assessment, used for India. | EnumNoYesIdNoYes (enum) | No | None | |
PurchOrderFormNumCustomer requisition number. | String (20)CustPurchaseOrder | 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 | |
ReleaseDateDate and time of release. | UtcDateTimePostReleaseDate | No | None | |
SalesDate_WSales date. | DateSalesDate_W | No | None | |
SalesIdRelated sales order. | String (20)SalesId | No | None | |
SalesPurchOperationType_BROperation type record, used for Brazil. | Int64SalesPurchOperationTypeRecId_BR | No | None | |
SATIncotermCode_MXIncoterm code, used for Mexico. | StringSATIncoterm_MX | No | None | |
SATPaymMethod_MXPayment type code, used for Mexico. | StringSATPaymMethod_MX | No | None | |
SATPurpose_MXPurpose code, used for Mexico. | StringSATPurpose_MX | No | None | |
ServiceCode_FRService code of the invoice account, used for France. | String (100)BusinessDocInvoiceAccountServiceCode_FR | No | None | |
ServiceCodeOnDlvAddress_BRYes/No flag: service code taken from the delivery address, used for Brazil. | EnumTaxServiceCodeOnDlvAddress_BRNoYes (enum) | No | None | |
ServiceCodeRefRecIdRecord reference for the service code. | Int64BusinessDocChorusProServiceCodeRefRecId | No | None | |
SourceCertificate_MXYes/No flag: source certificate, used for Mexico. | EnumSourceCertificate_MXNoYes (enum) | No | None | |
SourceDocumentHeaderSource document header record. | Int64RefRecId | No | None | |
SourceDocumentLineSource document line record. | Int64RefRecId | No | None | |
StatProcIdStatistics procedure for Intrastat. | StringIntrastatProcId | No | None | |
SubLedgerJournalStatusSubledger journal status. Values: required, processing, completed. | EnumSubLedgerJournalStatus (enum) | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TAMDeductionIDDeduction ID. | String (20)TAMDeductionID | No | None | |
TAMRebateTransIdRebate transaction number. | String (20)TAMRebateTransId | No | None | |
TaxGroupSales tax group. | StringTaxGroup | No | None | |
TaxIdTax registration number record. | Int64TaxRegistrationRecId | No | None | |
TaxInvoiceTransactionCode_IDTransaction code on the tax invoice, used for Indonesia. | String (2)TaxInvoiceTransactionCode_ID | No | None | |
TaxItemGroupItem sales tax group. | StringTaxItemGroup | No | None | |
TaxPeriodPaymentCode_PLVAT report date code, used for Poland. | StringPlTaxPeriodPaymentCode | No | None | |
TaxWithholdCalculateYes/No flag with no label. Likely relates to withholding tax calculation.low confidence | EnumNoYes (enum) | No | None | |
TCSGroup_INTax collected at source group, used for India. | StringTaxWithholdGroup | No | None | |
TDSGroup_INTax deducted at source group, used for India. | StringTaxWithholdGroup | No | None | |
TouchedYes/No flag: update marker.low confidence | EnumTradeTouchedNoYes (enum) | No | None | |
TransactionCodeTransaction code for Intrastat. | StringIntrastatTransactionCodeId | No | None | |
TransportTransport method for Intrastat. | StringIntrastatTransport | No | None | |
TransportationDocumentTransportation details record. | Int64TransportationDocumentRecId | No | None | |
UnitedVATInvoice_LTYes/No flag: united VAT invoice, used for Lithuania. | EnumUnitedVATInvoice_LTNoYes (enum) | No | None | |
UseDefaultFromCustomerSource of defaults for recurring invoices. Values: free text invoice template, customer account. | EnumCustRecurrenceInvoiceDefaultType (enum) | No | None | |
VatDueDate_WDate of the VAT register entry. | DateVatDueDate_W | No | None | |
VATNumTax exempt number. | String (20)VATNumJournal | No | None | |
VATNumRecIdRecord reference for the tax exempt number. | Int64RefRecId | No | None | |
VATNumTableTypeSource type of the tax exempt number. Values: none, tax registration, VAT number table. | EnumTaxExemptNumberSourceType (enum) | No | None | |
VATOnPayment_RUYes/No flag: VAT on payment, used for Russia. | EnumVATOnPayment_RUNoYes (enum) | No | None | |
WithIGSTPayment_INYes/No flag: with tax payment, used for India. | EnumNoYesIdNoYes (enum) | No | None | |
WorkerSalesTakerWorker who is the recipient or sales taker. | Int64SalesTaker | No | None | |
WorkflowApprovalStateApproval state of the invoice workflow, such as draft, submitted or approved. | EnumCustFreeInvoiceWFApprovalState (enum) | No | None | |
WorkflowApprovalStatusWorkflow status of the invoice, such as submitted, rejected or cancellation. | EnumCustFreeInvoiceWFApprovalStatus (enum) | No | None | |
WouldYouClaimRefund_INYes/No flag: whether a refund is claimed, used for India. | EnumNoYesIdNoYes (enum) | No | None |
Indexes (2)
InvoiceIdIdxInvoiceId,InvoiceDate,numberSequenceGroup,Posted,PartitionNot unique.
SourceDocumentHeaderIdxSourceDocumentHeader,DataAreaId,PartitionNot unique.
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.