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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ArchiveServiceJobIdID of the archive service job.Guid
ArchiveServiceJobId
NoNone
BackorderYes/No flag for backorder sales.Enum
NoYes (enum)
NoNone
BankLCExportLineReference number of the shipment, stored as a record ID.Int64
BankLCLineRefRecId
NoNone
BillOfLadingIdBill of lading number for the shipment.String (17)
WMSBillOfLadingId
NoNone
CashDiscCash discount amount on the invoice.Real
CustCashDiscAmount
NoNone
CashDiscBaseDateBase date used for the payment terms.Date
CashDiscBaseDate
NoNone
CashDiscCodeCode of the cash discount.String
CustCashDiscCode
NoNone
CashDiscDateLast date on which the cash discount applies.Date
CustCashDiscDate
NoNone
CashDiscPercentCash discount as a percentage.Real
DiscPct
NoNone
CommissionType_ITCommission settlement type: on invoice or on payment, used for Italy.Enum
CommissionType_IT (enum)
NoNone
ContactPersonIdID of the contact person for the invoice.String (20)
ContactPersonId
NoNone
CovStatusCash flow forecast status, stored 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
CurrencyCodeCurrency code of the invoice.String (3)
CustCurrencyCode
YesNone
CustGroupCustomer group of the invoiced customer.String
CustGroupId
YesNone
CustomerRefThe customer'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 dimensions, stored as a record ID.Int64
DimensionDefault
NoNone
DeliveryNameName of the delivery recipient.String (160)
CustName
NoNone
DeliveryPostalAddressPostal address used for delivery, stored as a record ID.Int64
LogisticsPostalAddressRecId
NoNone
DirectDebitMandateDirect debit mandate linked to the invoice, stored as a record ID.Int64
CustDirectDebitMandateRecId
NoNone
DlvModeMode of delivery code.String
CustDlvModeId
NoNone
DlvTermDelivery terms code.String
CustDlvTermId
NoNone
DocumentDateDate of the source document.Date
DocumentDate
NoNone
DocumentNumNumber of the source document.String (20)
DocumentNum
NoNone
DueDateDate when payment is due.Date
DueDate
NoNone
EInvoiceAccountCodeDimension account code used for electronic invoicing.String (35)
EInvoiceAccountCode
NoNone
EInvoiceLineSpecificYes/No flag for line-specific electronic invoicing.Enum
EInvoiceLineSpecific
NoYes (enum)
NoNone
ElectronicInvoiceFrameworkType_FRReference to an electronic invoice framework type, used for France.low confidenceInt64
RefRecId
NoNone
EndDiscTotal discount amount on the order header.Real
SalesEndDiscAmount
NoNone
EndDiscMSTTotal header discount in the accounting currency.Real
SalesEndDiscAmountMST
NoNone
EnterpriseNumberEnterprise number of the party, used for tax purposes.String (50)
TaxEnterpriseNumber
NoNone
EstablishmentEstablishment within the legal entity, stored as a record ID.Int64
EstablishmentRefRecId
NoNone
EUSalesListDispatch ID for the EU sales list.String (20)
ListDispatchId
NoNone
ExchRateExchange rate applied to the invoice.Real
CustExchRate
NoNone
ExchRateSecondarySecond exchange rate used for the invoice.Real
ExchrateSecondary
NoNone
FinTagFinancial tag, stored as a record ID.Int64
FinTagRecId
NoNone
FixedDueDateFixed due date set on the sales order.Date
SalesFixedDueDate
NoNone
GiroTypeType of payment slip attached to the invoice, such as FIK, BBS or S101.Enum
PaymentStubInvoiceId
PaymentStub (enum)
NoNone
HeaderTaxSales tax amount at header level (currency not stated in the metadata).Real
TaxAmountCur
NoNone
InclTaxYes/No flag showing whether prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
IntentLetterFromDate_ITStart date of the intent letter, used for Italy.Date
FromDate
NoNone
IntentLetterId_ITCustomer's intent letter number, used for Italy.String (17)
IntentLetterId_IT
NoNone
IntentLetterInternalId_ITInternal number for the intent letter, used for Italy.String
IntentLetterInternalId_IT
NoNone
IntentLetterToDate_ITEnd date of the intent letter, used for Italy.Date
ToDate
NoNone
InterCompanyCompanyIdIntercompany company linked to the invoice.String
InterCompanyCompanyId
NoNone
InterCompanyPostedYes/No flag showing whether the invoice was posted through intercompany.Enum
InterCompanyPosted
NoYes (enum)
NoNone
InterCompanyPurchIdIntercompany purchase order number.String (20)
InterCompanyPurchId
NoNone
IntrastatDispatchShipment batch ID for Intrastat reporting.String (20)
IntrastatDispatchId
NoNone
IntrastatFulfillmentDate_HUIntrastat fulfilment date, used for Hungary.Date
IntrastatFulfillmentDate_HU
NoNone
inventLocationIdWarehouse linked to the invoice.String
SalesInventLocationId
NoNone
InvoiceAccountCustomer account that receives the invoice.String (20)
CustInvoiceAccount
YesNone
InvoiceAmountTotal invoice amount in the transaction currency.Real
AmountCur
NoNone
InvoiceAmountMSTTotal invoice amount in the accounting currency.Real
AmountMST
NoNone
InvoiceDateDate of the invoice.Date
TransDate
YesNone
InvoiceIdIdentifier of the customer invoice.String (20)
CustInvoiceId
NoNone
InvoicePostalAddressPostal address used for invoicing, stored as a record ID.Int64
LogisticsPostalAddressRecId
NoNone
InvoiceRoundOffRounding amount on the invoice.Real
RoundOff
NoNone
InvoiceRoundOffMSTRounding amount in the accounting currency.Real
RoundOffMST
NoNone
InvoiceType_WInvoice type: tax invoice or simplified invoice.Enum
InvoiceType_W (enum)
NoNone
InvoicingNameName of the invoiced party.String (160)
CustName
NoNone
IsCorrectionYes/No flag for a credit correction.Enum
NoYes (enum)
NoNone
LanguageIdLanguage code of the customer.String (7)
CustLanguageId
YesNone
LedgerVoucherVoucher number linked to the invoice.String (20)
Voucher
NoNone
ListcodeList code for EU trade reporting, such as EU trade or triangular trade.Enum
ListcodeId
Listcode (enum)
NoNone
LogFree text log entry.String (255)
LogText
NoNone
MCRDueAmountAmount still due on the invoice.Real
AmountCur
NoNone
MCREmailEmail address stored with the invoice.String (80)
Email
NoNone
MCRPaymAmountAmount already paid.Real
AmountCur
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
numberSequenceGroupNumber sequence group used for the invoice.String
NumberSequenceGroupId
NoNone
OLAPCostValueCost value of the sales, for analysis.Real
SalesCostValue
NoNone
OnAccountAmountOn-account amount on the invoice.Real
AmountCur
NoNone
OneTimeCustomerYes/No flag for a one-time customer.Enum
OneTimeCustomer
NoYes (enum)
NoNone
OrderAccountCustomer account that placed the order.String (20)
CustAccount
YesNone
PackedExtensionsContainer holding packed extension data.Container
SysExtensionSerializerPackedContainer
NoNone
ParmIdParameter ID that groups the posting run.String (20)
ParmId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartyTaxIDParty's tax registration number, stored as a record ID.Int64
TaxRegistrationRecId
NoNone
PaymDayIdPayment day code.String
CustPaymDayId
NoNone
PaymentTerms of payment code.String (100)
CustPaymTermId
NoNone
PaymentSchedPayment schedule code.String (30)
PaymSchedId
NoNone
PaymIdPayment ID used to identify the payment.String (200)
PaymId
NoNone
PostedStatePosting state of the journal: posted or pending post.Enum
JournalPostedState (enum)
NoNone
PostingProfileCustomer posting profile.String
CustPostingProfile
NoNone
PrepaymentYes/No flag for a prepayment journal voucher.Enum
CustVendPrepayment
NoYes (enum)
NoNone
PrintDynamicQRCode_INYes/No flag for printing a dynamic QR code, used for India.Enum
PrintDynamicQRCode_IN
NoYes (enum)
NoNone
PrintedOriginalsNumber of original copies printed.Integer
PrintedOriginals
NoNone
PrintMgmtSiteIdSite used for print management.String
InventSiteId
NoNone
ProformaYes/No flag for a pro forma invoice.Enum
CustVendProforma
NoYes (enum)
NoNone
ProjectManager_FRAccount of the project manager, used for France.String (20)
CustAccount
NoNone
ProvisionalAssessment_INYes/No flag for provisional assessment, used for India.Enum
NoYesId
NoYes (enum)
NoNone
PurchaseOrderCustomer's purchase order or requisition reference.String (20)
CustPurchaseOrder
NoNone
QRCode_SAQR code text, used for Saudi Arabia.String (1000)
FreeText1000
NoNone
QtyTotal quantity on the invoice.Real
SalesQty
NoNone
RCSalesList_UKDispatch ID for the sales list, used for the United Kingdom.String (20)
RCListDispatchId_UK
NoNone
ReasonTableRefReference to a reason record, stored as a record ID.Int64
ReasonTableRefRecId
NoNone
ReceiptDateConfirmed_ESConfirmed receipt date, used for Spain.Date
SalesReceiptDateConfirmed
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
RefNumType of source, such as sales order, project or interest.Enum
RefNum (enum)
NoNone
ReportingCurrencyExchangeRateFixed exchange rate for the reporting currency.Real
ReportingCurrencyExchRate
NoNone
ReportingCurrencyExchangeRateSecondarySecond exchange rate for the reporting currency.Real
ReportingCurrencyExchRateSecondary
NoNone
ReturnItemNumReturn merchandise authorisation (RMA) number.String
ReturnItemNum
NoNone
ReturnReasonCodeIdCode giving the reason for a return.String
ReturnReasonCodeId
NoNone
ReturnStatusStatus of the return, such as open or closed.Enum
ReturnStatusHeader (enum)
NoNone
ReverseCharge_UKSales tax amount under reverse charge, used for the United Kingdom.Real
TaxAmountCur
NoNone
ReverseChargeAmountReverse charge amount on the invoice.Real
TaxAmountCur
NoNone
ReversedRecIdRecord ID of the customer invoice that this one reverses.Int64
RefRecId
NoNone
SalesBalanceSales subtotal amount in the transaction currency.Real
AmountCur
NoNone
SalesBalanceMSTSales subtotal amount in the accounting currency.Real
AmountMST
NoNone
SalesIdSales order number behind the invoice.String (20)
SalesIdBase
NoNone
SalesOriginIdCode showing where the sales order came from.String
SalesOriginId
NoNone
SalesTypeType of order, such as sales order, returned order or journal.Enum
SalesType (enum)
NoNone
SentElectronicallyYes/No flag showing whether the invoice was sent electronically.Enum
NoYes (enum)
NoNone
ServiceCode_FRService code of the invoice account, used for France.String (100)
BusinessDocInvoiceAccountServiceCode_FR
NoNone
ServiceCodeRefRecIdReference to a service code record.low confidenceInt64
BusinessDocChorusProServiceCodeRefRecId
NoNone
ShipCarrierBlindShipmentYes/No flag for a blind shipment.Enum
ShipCarrierBlindShipment
NoYes (enum)
NoNone
SourceDocumentHeaderSource document header, stored as a record ID.Int64
RefRecId
NoNone
SourceDocumentLineSource document line, stored as a record ID.Int64
RefRecId
NoNone
SubBillSuppressChildItemsYes/No flag to hide child items when printing.Enum
SubBillSuppressChildItems
NoYes (enum)
NoNone
SumLineDiscTotal of the line discounts.Real
SalesSumLineDiscAmount
NoNone
SumLineDiscMSTTotal line discount in the accounting currency.Real
SalesSumLineDiscAmountMST
NoNone
SumMarkupTotal charges on the invoice.Real
MarkupSumSales
NoNone
SumMarkupMSTTotal charges in the accounting currency.Real
MarkupSumMSTSales
NoNone
SumTaxSales tax amount on the invoice (currency not stated in the metadata).Real
TaxAmountCur
NoNone
SumTaxMSTSales tax amount in the accounting currency.Real
TaxAmount
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
TaxGroupSales tax group code.String
TaxGroup
NoNone
TaxIDTax registration number, stored as a record ID.Int64
TaxRegistrationRecId
NoNone
TaxInvoiceSalesIdTax invoice ID for the sale.String (50)
TaxInvoiceSalesId
NoNone
TaxItemGroupItem sales tax group code.String
TaxItemGroup
NoNone
TaxPrintOnInvoiceYes/No flag for writing tax on the invoice.Enum
TaxPrintOnInvoice
NoYes (enum)
NoNone
TaxSpecifyByLineYes/No flag for specifying tax by line.Enum
TaxSpecifyLine
NoYes (enum)
NoNone
TransportationDocumentTransportation details, stored as a record ID.Int64
TransportationDocumentRecId
NoNone
TriangulationYes/No flag for EU triangulation.Enum
EUROTriangulation
NoYes (enum)
NoNone
UpdatedYes/No flag showing whether the record was updated.low confidenceEnum
NoYes (enum)
NoNone
VATNumTax exempt number.String (20)
VATNumJournal
NoNone
VolumeTotal volume of the invoiced goods.Real
Volume
NoNone
WeightTotal weight of the invoiced goods.Real
Weight
NoNone
WorkerSalesTakerWorker who took the sales order, stored as a record ID.Int64
SalesTaker
NoNone

Indexes (2)

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.

Email sales@drdynamics.co.uk