Table
CustInvoiceJourHistory
CustInvoiceJour history data
Holds historical copies of customer invoice header records. Each row mirrors the customer invoice journal, with customer, invoice, amounts, dates, delivery, tax and country-specific details. The table has no key or relations listed in the metadata.
- Table name
CustInvoiceJourHistory- Module
Accounts receivable- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (143)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ArchiveServiceJobIdID of the archive service job. | GuidArchiveServiceJobId | No | None | |
BackorderYes/No flag for backorder sales. | EnumNoYes (enum) | No | None | |
BankLCExportLineReference number of the shipment, stored as a record ID. | Int64BankLCLineRefRecId | No | None | |
BillOfLadingIdBill of lading number for the shipment. | String (17)WMSBillOfLadingId | No | None | |
CashDiscCash discount amount on the invoice. | RealCustCashDiscAmount | No | None | |
CashDiscBaseDateBase date used for the payment terms. | DateCashDiscBaseDate | No | None | |
CashDiscCodeCode of the cash discount. | StringCustCashDiscCode | No | None | |
CashDiscDateLast date on which the cash discount applies. | DateCustCashDiscDate | No | None | |
CashDiscPercentCash discount as a percentage. | RealDiscPct | No | None | |
CommissionType_ITCommission settlement type: on invoice or on payment, used for Italy. | EnumCommissionType_IT (enum) | No | None | |
ContactPersonIdID of the contact person for the invoice. | String (20)ContactPersonId | No | None | |
CovStatusCash flow forecast status, stored 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 | |
CurrencyCodeCurrency code of the invoice. | String (3)CustCurrencyCode | Yes | None | |
CustGroupCustomer group of the invoiced customer. | StringCustGroupId | Yes | None | |
CustomerRefThe customer'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 dimensions, stored as a record ID. | Int64DimensionDefault | No | None | |
DeliveryNameName of the delivery recipient. | String (160)CustName | No | None | |
DeliveryPostalAddressPostal address used for delivery, stored as a record ID. | Int64LogisticsPostalAddressRecId | No | None | |
DirectDebitMandateDirect debit mandate linked to the invoice, stored as a record ID. | Int64CustDirectDebitMandateRecId | No | None | |
DlvModeMode of delivery code. | StringCustDlvModeId | No | None | |
DlvTermDelivery terms code. | StringCustDlvTermId | No | None | |
DocumentDateDate of the source document. | DateDocumentDate | No | None | |
DocumentNumNumber of the source document. | String (20)DocumentNum | No | None | |
DueDateDate when payment is due. | DateDueDate | No | None | |
EInvoiceAccountCodeDimension account code used for electronic invoicing. | String (35)EInvoiceAccountCode | No | None | |
EInvoiceLineSpecificYes/No flag for line-specific electronic invoicing. | EnumEInvoiceLineSpecificNoYes (enum) | No | None | |
ElectronicInvoiceFrameworkType_FRReference to an electronic invoice framework type, used for France.low confidence | Int64RefRecId | No | None | |
EndDiscTotal discount amount on the order header. | RealSalesEndDiscAmount | No | None | |
EndDiscMSTTotal header discount in the accounting currency. | RealSalesEndDiscAmountMST | No | None | |
EnterpriseNumberEnterprise number of the party, used for tax purposes. | String (50)TaxEnterpriseNumber | No | None | |
EstablishmentEstablishment within the legal entity, stored as a record ID. | Int64EstablishmentRefRecId | No | None | |
EUSalesListDispatch ID for the EU sales list. | String (20)ListDispatchId | No | None | |
ExchRateExchange rate applied to the invoice. | RealCustExchRate | No | None | |
ExchRateSecondarySecond exchange rate used for the invoice. | RealExchrateSecondary | No | None | |
FinTagFinancial tag, stored as a record ID. | Int64FinTagRecId | No | None | |
FixedDueDateFixed due date set on the sales order. | DateSalesFixedDueDate | No | None | |
GiroTypeType of payment slip attached to the invoice, such as FIK, BBS or S101. | EnumPaymentStubInvoiceIdPaymentStub (enum) | No | None | |
HeaderTaxSales tax amount at header level (currency not stated in the metadata). | RealTaxAmountCur | No | None | |
InclTaxYes/No flag showing whether prices include sales tax. | EnumInclTaxNoYes (enum) | No | None | |
IntentLetterFromDate_ITStart date of the intent letter, used for Italy. | DateFromDate | No | None | |
IntentLetterId_ITCustomer's intent letter number, used for Italy. | String (17)IntentLetterId_IT | No | None | |
IntentLetterInternalId_ITInternal number for the intent letter, used for Italy. | StringIntentLetterInternalId_IT | No | None | |
IntentLetterToDate_ITEnd date of the intent letter, used for Italy. | DateToDate | No | None | |
InterCompanyCompanyIdIntercompany company linked to the invoice. | StringInterCompanyCompanyId | No | None | |
InterCompanyPostedYes/No flag showing whether the invoice was posted through intercompany. | EnumInterCompanyPostedNoYes (enum) | No | None | |
InterCompanyPurchIdIntercompany purchase order number. | String (20)InterCompanyPurchId | No | None | |
IntrastatDispatchShipment batch ID for Intrastat reporting. | String (20)IntrastatDispatchId | No | None | |
IntrastatFulfillmentDate_HUIntrastat fulfilment date, used for Hungary. | DateIntrastatFulfillmentDate_HU | No | None | |
inventLocationIdWarehouse linked to the invoice. | StringSalesInventLocationId | No | None | |
InvoiceAccountCustomer account that receives the invoice. | String (20)CustInvoiceAccount | Yes | None | |
InvoiceAmountTotal invoice amount in the transaction currency. | RealAmountCur | No | None | |
InvoiceAmountMSTTotal invoice amount in the accounting currency. | RealAmountMST | No | None | |
InvoiceDateDate of the invoice. | DateTransDate | Yes | None | |
InvoiceIdIdentifier of the customer invoice. | String (20)CustInvoiceId | No | None | |
InvoicePostalAddressPostal address used for invoicing, stored as a record ID. | Int64LogisticsPostalAddressRecId | No | None | |
InvoiceRoundOffRounding amount on the invoice. | RealRoundOff | No | None | |
InvoiceRoundOffMSTRounding amount in the accounting currency. | RealRoundOffMST | No | None | |
InvoiceType_WInvoice type: tax invoice or simplified invoice. | EnumInvoiceType_W (enum) | No | None | |
InvoicingNameName of the invoiced party. | String (160)CustName | No | None | |
IsCorrectionYes/No flag for a credit correction. | EnumNoYes (enum) | No | None | |
LanguageIdLanguage code of the customer. | String (7)CustLanguageId | Yes | None | |
LedgerVoucherVoucher number linked to the invoice. | String (20)Voucher | No | None | |
ListcodeList code for EU trade reporting, such as EU trade or triangular trade. | EnumListcodeIdListcode (enum) | No | None | |
LogFree text log entry. | String (255)LogText | No | None | |
MCRDueAmountAmount still due on the invoice. | RealAmountCur | No | None | |
MCREmailEmail address stored with the invoice. | String (80)Email | No | None | |
MCRPaymAmountAmount already paid. | RealAmountCur | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
numberSequenceGroupNumber sequence group used for the invoice. | StringNumberSequenceGroupId | No | None | |
OLAPCostValueCost value of the sales, for analysis. | RealSalesCostValue | No | None | |
OnAccountAmountOn-account amount on the invoice. | RealAmountCur | No | None | |
OneTimeCustomerYes/No flag for a one-time customer. | EnumOneTimeCustomerNoYes (enum) | No | None | |
OrderAccountCustomer account that placed the order. | String (20)CustAccount | Yes | None | |
PackedExtensionsContainer holding packed extension data. | ContainerSysExtensionSerializerPackedContainer | No | None | |
ParmIdParameter ID that groups the posting run. | String (20)ParmId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PartyTaxIDParty's tax registration number, stored as a record ID. | Int64TaxRegistrationRecId | No | None | |
PaymDayIdPayment day code. | StringCustPaymDayId | No | None | |
PaymentTerms of payment code. | String (100)CustPaymTermId | No | None | |
PaymentSchedPayment schedule code. | String (30)PaymSchedId | No | None | |
PaymIdPayment ID used to identify the payment. | String (200)PaymId | No | None | |
PostedStatePosting state of the journal: posted or pending post. | EnumJournalPostedState (enum) | No | None | |
PostingProfileCustomer posting profile. | StringCustPostingProfile | No | None | |
PrepaymentYes/No flag for a prepayment journal voucher. | EnumCustVendPrepaymentNoYes (enum) | No | None | |
PrintDynamicQRCode_INYes/No flag for printing a dynamic QR code, used for India. | EnumPrintDynamicQRCode_INNoYes (enum) | No | None | |
PrintedOriginalsNumber of original copies printed. | IntegerPrintedOriginals | No | None | |
PrintMgmtSiteIdSite used for print management. | StringInventSiteId | No | None | |
ProformaYes/No flag for a pro forma invoice. | EnumCustVendProformaNoYes (enum) | No | None | |
ProjectManager_FRAccount of the project manager, used for France. | String (20)CustAccount | No | None | |
ProvisionalAssessment_INYes/No flag for provisional assessment, used for India. | EnumNoYesIdNoYes (enum) | No | None | |
PurchaseOrderCustomer's purchase order or requisition reference. | String (20)CustPurchaseOrder | No | None | |
QRCode_SAQR code text, used for Saudi Arabia. | String (1000)FreeText1000 | No | None | |
QtyTotal quantity on the invoice. | RealSalesQty | No | None | |
RCSalesList_UKDispatch ID for the sales list, used for the United Kingdom. | String (20)RCListDispatchId_UK | No | None | |
ReasonTableRefReference to a reason record, stored as a record ID. | Int64ReasonTableRefRecId | No | None | |
ReceiptDateConfirmed_ESConfirmed receipt date, used for Spain. | DateSalesReceiptDateConfirmed | 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 | |
RefNumType of source, such as sales order, project or interest. | EnumRefNum (enum) | No | None | |
ReportingCurrencyExchangeRateFixed exchange rate for the reporting currency. | RealReportingCurrencyExchRate | No | None | |
ReportingCurrencyExchangeRateSecondarySecond exchange rate for the reporting currency. | RealReportingCurrencyExchRateSecondary | No | None | |
ReturnItemNumReturn merchandise authorisation (RMA) number. | StringReturnItemNum | No | None | |
ReturnReasonCodeIdCode giving the reason for a return. | StringReturnReasonCodeId | No | None | |
ReturnStatusStatus of the return, such as open or closed. | EnumReturnStatusHeader (enum) | No | None | |
ReverseCharge_UKSales tax amount under reverse charge, used for the United Kingdom. | RealTaxAmountCur | No | None | |
ReverseChargeAmountReverse charge amount on the invoice. | RealTaxAmountCur | No | None | |
ReversedRecIdRecord ID of the customer invoice that this one reverses. | Int64RefRecId | No | None | |
SalesBalanceSales subtotal amount in the transaction currency. | RealAmountCur | No | None | |
SalesBalanceMSTSales subtotal amount in the accounting currency. | RealAmountMST | No | None | |
SalesIdSales order number behind the invoice. | String (20)SalesIdBase | No | None | |
SalesOriginIdCode showing where the sales order came from. | StringSalesOriginId | No | None | |
SalesTypeType of order, such as sales order, returned order or journal. | EnumSalesType (enum) | No | None | |
SentElectronicallyYes/No flag showing whether the invoice was sent electronically. | EnumNoYes (enum) | No | None | |
ServiceCode_FRService code of the invoice account, used for France. | String (100)BusinessDocInvoiceAccountServiceCode_FR | No | None | |
ServiceCodeRefRecIdReference to a service code record.low confidence | Int64BusinessDocChorusProServiceCodeRefRecId | No | None | |
ShipCarrierBlindShipmentYes/No flag for a blind shipment. | EnumShipCarrierBlindShipmentNoYes (enum) | No | None | |
SourceDocumentHeaderSource document header, stored as a record ID. | Int64RefRecId | No | None | |
SourceDocumentLineSource document line, stored as a record ID. | Int64RefRecId | No | None | |
SubBillSuppressChildItemsYes/No flag to hide child items when printing. | EnumSubBillSuppressChildItemsNoYes (enum) | No | None | |
SumLineDiscTotal of the line discounts. | RealSalesSumLineDiscAmount | No | None | |
SumLineDiscMSTTotal line discount in the accounting currency. | RealSalesSumLineDiscAmountMST | No | None | |
SumMarkupTotal charges on the invoice. | RealMarkupSumSales | No | None | |
SumMarkupMSTTotal charges in the accounting currency. | RealMarkupSumMSTSales | No | None | |
SumTaxSales tax amount on the invoice (currency not stated in the metadata). | RealTaxAmountCur | No | None | |
SumTaxMSTSales tax amount in the accounting currency. | RealTaxAmount | 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 | |
TaxGroupSales tax group code. | StringTaxGroup | No | None | |
TaxIDTax registration number, stored as a record ID. | Int64TaxRegistrationRecId | No | None | |
TaxInvoiceSalesIdTax invoice ID for the sale. | String (50)TaxInvoiceSalesId | No | None | |
TaxItemGroupItem sales tax group code. | StringTaxItemGroup | No | None | |
TaxPrintOnInvoiceYes/No flag for writing tax on the invoice. | EnumTaxPrintOnInvoiceNoYes (enum) | No | None | |
TaxSpecifyByLineYes/No flag for specifying tax by line. | EnumTaxSpecifyLineNoYes (enum) | No | None | |
TransportationDocumentTransportation details, stored as a record ID. | Int64TransportationDocumentRecId | No | None | |
TriangulationYes/No flag for EU triangulation. | EnumEUROTriangulationNoYes (enum) | No | None | |
UpdatedYes/No flag showing whether the record was updated.low confidence | EnumNoYes (enum) | No | None | |
VATNumTax exempt number. | String (20)VATNumJournal | No | None | |
VolumeTotal volume of the invoiced goods. | RealVolume | No | None | |
WeightTotal weight of the invoiced goods. | RealWeight | No | None | |
WorkerSalesTakerWorker who took the sales order, stored as a record ID. | Int64SalesTaker | No | None |
Indexes (2)
InvoiceNumIdxInvoiceId,InvoiceDate,numberSequenceGroup,RecId,PartitionUnique.
ArchiveJobIdxArchiveServiceJobId,DataAreaId,PartitionNot unique.
Get this data out
No public entity reads from CustInvoiceJourHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustInvoiceJourHistory in a report, an integration or a migration? Talk to Dr Dynamics.