Table

CustInvoiceTransHistory

CustInvoiceTrans history data

History copy of customer invoice lines. It holds item, quantity, price, discount, tax, delivery, Intrastat and dimension data per line. Each line points to a header in CustInvoiceJourHistory through ParentRecId.

Table name
CustInvoiceTransHistory
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 (123)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AssetBookIdBook of the fixed asset on the line.String
AssetBookIdPurchSalesInvent
NoNone
AssetIdFixed asset number.String (20)
AssetIdOpen
NoNone
BillingCodeBilling code.String
BillingCode
NoNone
CommissAmountCurCommission amount in the transaction currency.Real
CommissAmountCur
NoNone
CommissAmountMSTCommission amount in the accounting currency.Real
CommissAmountMST
NoNone
CommissCalcShows whether commission has been calculated.Enum
CommissCalc
NoYes (enum)
NoNone
CountryRegionOfShipmentCountry or region the goods are shipped from.String
AddressCountryRegionId
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 line.String (3)
CustCurrencyCode
NoNone
CustInvoiceLineIdRefReference to another customer invoice line by record ID.Int64
CustInvoiceLineIdRefRecId
NoNone
CustomerLineNumCustomer line number.Integer
CustLineNum
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension values for the line.Int64
LedgerDimensionValueSet
NoNone
DeliveryPostalAddressRecord ID of the delivery postal address.Int64
LogisticsPostalAddressRecId
NoNone
DeliveryTypeDelivery type, either stock or direct delivery.Enum
TradeLineDlvTypeId
TradeLineDlvType (enum)
NoNone
DiscAmountDiscount amount on the line.Real
SalesDiscAmount
NoNone
DiscPercentDiscount percentage on the line.Real
SalesDiscPercent
NoNone
DlvDateDate the goods were shipped.Date
SalesShippingDate
NoNone
EInvoiceAccountCodeDimension account code for electronic invoicing.String (35)
EInvoiceAccountCode
NoNone
ExternalItemIdItem number used by the customer or an external party.String (20)
SalesExternalItemId
NoNone
FinTagFinancial tag, stored as a record ID.Int64
FinTagRecId
NoNone
GoodsForFree_ITShows whether the goods are free of charge. Used for Italy.Enum
NoYes (enum)
NoNone
InterCompanyInventTransIdLot ID used for intercompany trade.String (20)
InventTransId
NoNone
IntrastatCommodityCommodity code for Intrastat, stored as a record ID.Int64
IntrastatCommodityId
NoNone
IntrastatDispatchIdShipment batch used for Intrastat.String (20)
IntrastatDispatchId
NoNone
IntrastatFulfillmentDate_HUIntrastat fulfilment date. Used for Hungary.Date
IntrastatFulfillmentDate_HU
NoNone
InventDimIdInventory dimension number.String (20)
InventDimId
NoNone
InventQtyQuantity in inventory units.Real
InventQty
NoNone
InventRefIdReference number of the source document.String (20)
InventRefId
NoNone
InventRefTransIdReference lot ID of the source transaction.String (20)
InventRefTransId
NoNone
InventRefTypeType of the source document, such as sales order or purchase order.Enum
InventRefType (enum)
NoNone
InventTransIdLot ID of the inventory transaction.String (20)
TradeInventTransId
NoNone
InvoiceDateInvoice date.Date
TransDate
YesNone
InvoiceIdInvoice number.String (20)
CustInvoiceId
YesNone
ItemCodeIdCommodity code for Intrastat, older field.String
DEL_IntrastatItemCodeId
NoNone
ItemIdItem number.String (20)
ItemId
NoNone
LedgerDimensionMain account and dimensions for the line.Int64
LedgerDimensionDefaultAccount
NoNone
LineAmountLine amount in the transaction currency.Real
AmountCur
NoNone
LineAmountMSTLine amount in the accounting currency.Real
AmountMST
NoNone
LineAmountTaxSales tax included in the line amount.Real
LineAmountTax
NoNone
LineAmountTaxMSTSales tax included in the line amount, in the accounting currency.Real
LineAmountTaxMST
NoNone
LineCreationSequenceNumberSequence number showing the order in which lines were created.Integer
CustInvoiceLineCreationSequenceNumber
NoNone
LineDiscLine discount value.Real
SalesLineDisc
NoNone
LineHeaderHeading text for the line.String (80)
LineHeader
NoNone
LineNumLine number.Real
LineNum
NoNone
LinePercentLine discount percentage.Real
SalesLinePercent
NoNone
MCRDeliveryNameName of the delivery recipient.String (160)
CustName
NoNone
MCRDlvModeDelivery mode code.String
CustDlvModeId
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
MultiLnDiscMultiline discount value.Real
SalesMultiLnDisc
NoNone
MultiLnPercentMultiline discount percentage.Real
SalesMultiLnPercent
NoNone
NameFree text description of the line.String (1000)
ItemFreeTxtBase
NoNone
NGPCodesTable_FRNGP code reference. Used for France.Int64
NGPCodesTableFRId
NoNone
numberSequenceGroupNumber sequence group code.String
NumberSequenceGroupId
NoNone
OLAPCostValueCost value of the line.Real
SalesCostValue
NoNone
OrderLineReference_NOOrder line reference. Used for Norway.String (30)
OrderLineReference_NO
NoNone
OrigCountryRegionIdCountry or region of origin.String
ItemOrigCountryRegionId
NoNone
OrigSalesIdOriginal sales order number.String (20)
SalesIdOrig
NoNone
OrigStateState of origin.String
ItemOrigStateId
NoNone
OverrideSalesTaxYes or No flag that allows the sales tax result to be overridden.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
PackedExtensionsPacked container holding extension data.Container
SysExtensionSerializerPackedContainer
NoNone
ParentRecIdRecord ID of the invoice header in CustInvoiceJourHistory.Int64
RefRecId
NoCustInvoiceJourHistory.RecIdNone
PartDeliveryShows whether this is a part delivery.Enum
PartDelivery
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PdsCWQtyCatch weight quantity.Real
PdsCWInventQty
NoNone
PdsCWQtyPhysicalCatch weight quantity, physical.Real
PdsCWInventQty
NoNone
PdsCWRemainCatch weight quantity that remains.Real
PdsCWInventQty
NoNone
PeriodChargeInvoiceLineBaseFromDateStart date of the period used for a periodic charge.Date
MarkupPeriodChargeInvoiceLineBaseFromDate
NoNone
PeriodChargeInvoiceLineBaseToDateEnd date of the period used for a periodic charge.Date
MarkupPeriodChargeInvoiceLineBaseToDate
NoNone
PortPort used for Intrastat reporting.String
IntrastatPortId
NoNone
PriceUnitNumber of units that the price covers.Real
PriceUnit
NoNone
QtyInvoiced quantity.Real
SalesInvoicedQty
NoNone
QtyPhysicalPhysical quantity on the line.Real
SalesQty
NoNone
ReasonRefRecIdRecord ID of a reason record.Int64
ReasonRefRecID
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
RefCommReportTrans_RUReference to a commission report transaction. Used for Russia.Int64
RefRecId
NoNone
RemainRemaining quantity.Real
SalesQty
NoNone
RemainBeforeRemaining quantity before this invoice.Real
SalesQty
NoNone
RetailCategoryRetail category, stored as a record ID.Int64
RetailCategory
NoNone
ReturnArrivalDateActual arrival date of a return.Date
ReturnArrivalDate
NoNone
ReturnClosedDateDate the return was closed.Date
ReturnClosedDate
NoNone
ReturnDispositionCodeIdDisposition code for a return.String
ReturnDispositionCodeId
NoNone
ReverseCharge_WShows whether reverse charge applies.Enum
TaxReverseCharge
NoYes (enum)
NoNone
ReverseChargeApplies_UKYes or No flag for reverse charge. Used for United Kingdom.Enum
NoYes (enum)
NoNone
ReverseChargeSalesListShows whether the line is on the reverse charge sales list.Enum
NoYesId
NoYes (enum)
NoNone
ReversedRecIdRecord ID of the invoice line that this line reverses.Int64
RefRecId
NoNone
RevRecDeferredShows whether revenue is deferred.Enum
NoYes (enum)
NoNone
RevRecDeferredProcessedShows whether the deferred revenue has been processed.Enum
NoYes (enum)
NoNone
RevRecRevenueScheduleIdRevenue schedule ID.String
RevRecRevenueScheduleID
NoNone
SalesCategorySales category, stored as a record ID.Int64
SalesCategory
NoNone
SalesGroupSales group code, used for commission.String
CommissSalesGroup
NoNone
SalesIdSales order number.String (20)
SalesId
NoNone
SalesMarkupCharges on the line.Real
SalesMarkup
NoNone
SalesPriceUnit price.Real
SalesPrice
NoNone
SalesUnitUnit of measure for sales.String
SalesUnit
NoNone
SourceDocumentLineRecord ID of the source document line.Int64
RefRecId
NoNone
StateOfShipmentState or province the goods are shipped from.String
LogisticsAddressStateId
NoNone
StatLineAmountMSTStatistics amount for Intrastat, in the accounting currency.Real
IntrastatLineAmountMST
NoNone
StatProcIdStatistics procedure code for Intrastat.String
IntrastatProcId
NoNone
StockedProductShows whether the product is stocked.Enum
TradeStockedProduct
NoYes (enum)
NoNone
SubBillRevenueSplitShows whether the line is a revenue split parent item.Enum
SubBillRevenueSplit
NoYes (enum)
NoNone
SubBillRevenueSplitAllocationMethodMethod used to allocate the revenue split, such as percentage or equal amount.Enum
SubBillRevenueSplitAllocationMethod (enum)
NoNone
SubBillRevenueSplitParentAmountAmount of the parent line in a revenue split.RealNoNone
SubBillRevenueSplitParentLineRecIdRecord ID of the parent line for the revenue split.Int64
RefRecId
NoNone
SumLineDiscTotal line discount amount.Real
SalesSumLineDiscAmount
NoNone
SumLineDiscMSTTotal line discount in the accounting currency.Real
SalesSumLineDiscAmountMST
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
TaxAmountSales tax amount.Real
TaxAmountCur
NoNone
TaxAmountMSTSales tax amount in the accounting currency.Real
TaxAmount
NoNone
TaxAutogeneratedShows whether the tax line was generated automatically.Enum
TaxAutoGenerated
NoYes (enum)
NoNone
TaxGroupSales tax group code.String
TaxGroup
NoNone
TaxItemGroupItem sales tax group code.String
TaxItemGroup
NoNone
TaxWithholdGroup_THWithholding tax group. Used for Thailand.String
TaxWithholdGroup
NoNone
TaxWithholdItemGroupHeading_THItem withholding tax group. Used for Thailand.Int64
TaxWithholdItemGroupId_TH
NoNone
TaxWriteCodePrint code for tax.String
TaxWriteCode
NoNone
TotalChargeAmount in the transaction currency.Real
AmountCur
NoNone
TotalTaxSales tax amount for the line.Real
TaxAmountCur
NoNone
TransactionCodeIntrastat transaction code.String
IntrastatTransactionCodeId
NoNone
TransportIntrastat transport mode.String
IntrastatTransport
NoNone
WeightWeight of the line.Real
Weight
NoNone

Indexes (2)

Relations (1)

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

  • CustInvoiceJourHistory_ParentRecId → CustInvoiceJourHistory

    Join on ParentRecId = CustInvoiceJourHistory.RecId

    Many CustInvoiceTransHistory records → exactly one CustInvoiceJourHistory record

Get this data out

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

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

Email sales@drdynamics.co.uk