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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AssetBookIdBook of the fixed asset on the line. | StringAssetBookIdPurchSalesInvent | No | None | |
AssetIdFixed asset number. | String (20)AssetIdOpen | No | None | |
BillingCodeBilling code. | StringBillingCode | No | None | |
CommissAmountCurCommission amount in the transaction currency. | RealCommissAmountCur | No | None | |
CommissAmountMSTCommission amount in the accounting currency. | RealCommissAmountMST | No | None | |
CommissCalcShows whether commission has been calculated. | EnumCommissCalcNoYes (enum) | No | None | |
CountryRegionOfShipmentCountry or region the goods are shipped from. | StringAddressCountryRegionId | 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 line. | String (3)CustCurrencyCode | No | None | |
CustInvoiceLineIdRefReference to another customer invoice line by record ID. | Int64CustInvoiceLineIdRefRecId | No | None | |
CustomerLineNumCustomer line number. | IntegerCustLineNum | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionDefault financial dimension values for the line. | Int64LedgerDimensionValueSet | No | None | |
DeliveryPostalAddressRecord ID of the delivery postal address. | Int64LogisticsPostalAddressRecId | No | None | |
DeliveryTypeDelivery type, either stock or direct delivery. | EnumTradeLineDlvTypeIdTradeLineDlvType (enum) | No | None | |
DiscAmountDiscount amount on the line. | RealSalesDiscAmount | No | None | |
DiscPercentDiscount percentage on the line. | RealSalesDiscPercent | No | None | |
DlvDateDate the goods were shipped. | DateSalesShippingDate | No | None | |
EInvoiceAccountCodeDimension account code for electronic invoicing. | String (35)EInvoiceAccountCode | No | None | |
ExternalItemIdItem number used by the customer or an external party. | String (20)SalesExternalItemId | No | None | |
FinTagFinancial tag, stored as a record ID. | Int64FinTagRecId | No | None | |
GoodsForFree_ITShows whether the goods are free of charge. Used for Italy. | EnumNoYes (enum) | No | None | |
InterCompanyInventTransIdLot ID used for intercompany trade. | String (20)InventTransId | No | None | |
IntrastatCommodityCommodity code for Intrastat, stored as a record ID. | Int64IntrastatCommodityId | No | None | |
IntrastatDispatchIdShipment batch used for Intrastat. | String (20)IntrastatDispatchId | No | None | |
IntrastatFulfillmentDate_HUIntrastat fulfilment date. Used for Hungary. | DateIntrastatFulfillmentDate_HU | No | None | |
InventDimIdInventory dimension number. | String (20)InventDimId | No | None | |
InventQtyQuantity in inventory units. | RealInventQty | No | None | |
InventRefIdReference number of the source document. | String (20)InventRefId | No | None | |
InventRefTransIdReference lot ID of the source transaction. | String (20)InventRefTransId | No | None | |
InventRefTypeType of the source document, such as sales order or purchase order. | EnumInventRefType (enum) | No | None | |
InventTransIdLot ID of the inventory transaction. | String (20)TradeInventTransId | No | None | |
InvoiceDateInvoice date. | DateTransDate | Yes | None | |
InvoiceIdInvoice number. | String (20)CustInvoiceId | Yes | None | |
ItemCodeIdCommodity code for Intrastat, older field. | StringDEL_IntrastatItemCodeId | No | None | |
ItemIdItem number. | String (20)ItemId | No | None | |
LedgerDimensionMain account and dimensions for the line. | Int64LedgerDimensionDefaultAccount | No | None | |
LineAmountLine amount in the transaction currency. | RealAmountCur | No | None | |
LineAmountMSTLine amount in the accounting currency. | RealAmountMST | No | None | |
LineAmountTaxSales tax included in the line amount. | RealLineAmountTax | No | None | |
LineAmountTaxMSTSales tax included in the line amount, in the accounting currency. | RealLineAmountTaxMST | No | None | |
LineCreationSequenceNumberSequence number showing the order in which lines were created. | IntegerCustInvoiceLineCreationSequenceNumber | No | None | |
LineDiscLine discount value. | RealSalesLineDisc | No | None | |
LineHeaderHeading text for the line. | String (80)LineHeader | No | None | |
LineNumLine number. | RealLineNum | No | None | |
LinePercentLine discount percentage. | RealSalesLinePercent | No | None | |
MCRDeliveryNameName of the delivery recipient. | String (160)CustName | No | None | |
MCRDlvModeDelivery mode code. | StringCustDlvModeId | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
MultiLnDiscMultiline discount value. | RealSalesMultiLnDisc | No | None | |
MultiLnPercentMultiline discount percentage. | RealSalesMultiLnPercent | No | None | |
NameFree text description of the line. | String (1000)ItemFreeTxtBase | No | None | |
NGPCodesTable_FRNGP code reference. Used for France. | Int64NGPCodesTableFRId | No | None | |
numberSequenceGroupNumber sequence group code. | StringNumberSequenceGroupId | No | None | |
OLAPCostValueCost value of the line. | RealSalesCostValue | No | None | |
OrderLineReference_NOOrder line reference. Used for Norway. | String (30)OrderLineReference_NO | No | None | |
OrigCountryRegionIdCountry or region of origin. | StringItemOrigCountryRegionId | No | None | |
OrigSalesIdOriginal sales order number. | String (20)SalesIdOrig | No | None | |
OrigStateState of origin. | StringItemOrigStateId | No | None | |
OverrideSalesTaxYes or No flag that allows the sales tax result to be overridden. | EnumTaxIntegrationOverrideSalesTaxNoYes (enum) | No | None | |
PackedExtensionsPacked container holding extension data. | ContainerSysExtensionSerializerPackedContainer | No | None | |
ParentRecIdRecord ID of the invoice header in CustInvoiceJourHistory. | Int64RefRecId | No | CustInvoiceJourHistory.RecId | None |
PartDeliveryShows whether this is a part delivery. | EnumPartDeliveryNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PdsCWQtyCatch weight quantity. | RealPdsCWInventQty | No | None | |
PdsCWQtyPhysicalCatch weight quantity, physical. | RealPdsCWInventQty | No | None | |
PdsCWRemainCatch weight quantity that remains. | RealPdsCWInventQty | No | None | |
PeriodChargeInvoiceLineBaseFromDateStart date of the period used for a periodic charge. | DateMarkupPeriodChargeInvoiceLineBaseFromDate | No | None | |
PeriodChargeInvoiceLineBaseToDateEnd date of the period used for a periodic charge. | DateMarkupPeriodChargeInvoiceLineBaseToDate | No | None | |
PortPort used for Intrastat reporting. | StringIntrastatPortId | No | None | |
PriceUnitNumber of units that the price covers. | RealPriceUnit | No | None | |
QtyInvoiced quantity. | RealSalesInvoicedQty | No | None | |
QtyPhysicalPhysical quantity on the line. | RealSalesQty | No | None | |
ReasonRefRecIdRecord ID of a reason record. | Int64ReasonRefRecID | 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 | |
RefCommReportTrans_RUReference to a commission report transaction. Used for Russia. | Int64RefRecId | No | None | |
RemainRemaining quantity. | RealSalesQty | No | None | |
RemainBeforeRemaining quantity before this invoice. | RealSalesQty | No | None | |
RetailCategoryRetail category, stored as a record ID. | Int64RetailCategory | No | None | |
ReturnArrivalDateActual arrival date of a return. | DateReturnArrivalDate | No | None | |
ReturnClosedDateDate the return was closed. | DateReturnClosedDate | No | None | |
ReturnDispositionCodeIdDisposition code for a return. | StringReturnDispositionCodeId | No | None | |
ReverseCharge_WShows whether reverse charge applies. | EnumTaxReverseChargeNoYes (enum) | No | None | |
ReverseChargeApplies_UKYes or No flag for reverse charge. Used for United Kingdom. | EnumNoYes (enum) | No | None | |
ReverseChargeSalesListShows whether the line is on the reverse charge sales list. | EnumNoYesIdNoYes (enum) | No | None | |
ReversedRecIdRecord ID of the invoice line that this line reverses. | Int64RefRecId | No | None | |
RevRecDeferredShows whether revenue is deferred. | EnumNoYes (enum) | No | None | |
RevRecDeferredProcessedShows whether the deferred revenue has been processed. | EnumNoYes (enum) | No | None | |
RevRecRevenueScheduleIdRevenue schedule ID. | StringRevRecRevenueScheduleID | No | None | |
SalesCategorySales category, stored as a record ID. | Int64SalesCategory | No | None | |
SalesGroupSales group code, used for commission. | StringCommissSalesGroup | No | None | |
SalesIdSales order number. | String (20)SalesId | No | None | |
SalesMarkupCharges on the line. | RealSalesMarkup | No | None | |
SalesPriceUnit price. | RealSalesPrice | No | None | |
SalesUnitUnit of measure for sales. | StringSalesUnit | No | None | |
SourceDocumentLineRecord ID of the source document line. | Int64RefRecId | No | None | |
StateOfShipmentState or province the goods are shipped from. | StringLogisticsAddressStateId | No | None | |
StatLineAmountMSTStatistics amount for Intrastat, in the accounting currency. | RealIntrastatLineAmountMST | No | None | |
StatProcIdStatistics procedure code for Intrastat. | StringIntrastatProcId | No | None | |
StockedProductShows whether the product is stocked. | EnumTradeStockedProductNoYes (enum) | No | None | |
SubBillRevenueSplitShows whether the line is a revenue split parent item. | EnumSubBillRevenueSplitNoYes (enum) | No | None | |
SubBillRevenueSplitAllocationMethodMethod used to allocate the revenue split, such as percentage or equal amount. | EnumSubBillRevenueSplitAllocationMethod (enum) | No | None | |
SubBillRevenueSplitParentAmountAmount of the parent line in a revenue split. | Real | No | None | |
SubBillRevenueSplitParentLineRecIdRecord ID of the parent line for the revenue split. | Int64RefRecId | No | None | |
SumLineDiscTotal line discount amount. | RealSalesSumLineDiscAmount | No | None | |
SumLineDiscMSTTotal line discount in the accounting currency. | RealSalesSumLineDiscAmountMST | 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 | |
TaxAmountSales tax amount. | RealTaxAmountCur | No | None | |
TaxAmountMSTSales tax amount in the accounting currency. | RealTaxAmount | No | None | |
TaxAutogeneratedShows whether the tax line was generated automatically. | EnumTaxAutoGeneratedNoYes (enum) | No | None | |
TaxGroupSales tax group code. | StringTaxGroup | No | None | |
TaxItemGroupItem sales tax group code. | StringTaxItemGroup | No | None | |
TaxWithholdGroup_THWithholding tax group. Used for Thailand. | StringTaxWithholdGroup | No | None | |
TaxWithholdItemGroupHeading_THItem withholding tax group. Used for Thailand. | Int64TaxWithholdItemGroupId_TH | No | None | |
TaxWriteCodePrint code for tax. | StringTaxWriteCode | No | None | |
TotalChargeAmount in the transaction currency. | RealAmountCur | No | None | |
TotalTaxSales tax amount for the line. | RealTaxAmountCur | No | None | |
TransactionCodeIntrastat transaction code. | StringIntrastatTransactionCodeId | No | None | |
TransportIntrastat transport mode. | StringIntrastatTransport | No | None | |
WeightWeight of the line. | RealWeight | No | None |
Indexes (2)
CustInvoiceTransCreationSequenceIdxInvoiceId,InvoiceDate,LineCreationSequenceNumber,PartitionUnique, alternate key.
ParentRecIdxParentRecId,DataAreaId,PartitionNot unique.
Relations (1)
Each relation joins CustInvoiceTransHistory to another table on the fields shown.
CustInvoiceJourHistory_ParentRecId→CustInvoiceJourHistoryJoin on
ParentRecId = CustInvoiceJourHistory.RecIdMany 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.