Table
CustInvoiceLineHistory
CustInvoiceLine history data
History data for customer free text invoice lines. It keeps a wide copy of line values such as amount, quantity, unit price, tax groups, project, fixed asset, dimensions and Intrastat details. It also holds country-specific fields for several countries. It has no defined key or relations in the metadata.
- Table name
CustInvoiceLineHistory- Module
Accounts receivable- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (98)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingDistributionTemplateRecord ID of the accounting distribution template. | Int64AccountingDistributionTemplateRecId | No | None | |
AmountCurAmount of the line; currency not stated in the metadata. | RealAmountCur | No | None | |
AmountDetailsFree text with details about the amount. | String (-1)AmountDetails | No | None | |
AssessableValue_INAssessable value in transaction currency, used for India. | RealAmountCur | No | None | |
AssetBookIdFixed asset book ID for the line. | StringAssetBookIdPurchSalesInvent | No | None | |
AssetIdFixed asset number for the line. | String (20)AssetIdOpen | No | None | |
AssetId_RUFixed asset inventory number, used for Russia. | String (20)RAssetIdOpen | No | None | |
BillingCodeBilling code for the line. | StringBillingCode | No | None | |
Brand_MXProduct brand, used for Mexico. | String (30)BrandCode_MX | No | None | |
CFOPTable_BRRecord ID of the CFOP code, used for Brazil.low confidence | Int64RefRecId | No | None | |
CompanyLocation_INRecord ID of the company location, used for India.low confidence | Int64RefRecId | No | None | |
Consignment_MXYes/No flag for a consignment shipment, used for Mexico. | EnumConsignment_MXNoYes (enum) | No | None | |
CorrectedCustInvoiceLineRecord ID of the invoice line that this line corrects. | Int64RefRecId | No | None | |
CountryName_RUShort country or region name, used for Russia. | String (255)LogisticsAddressCountryRegionShortName | No | None | |
CreditNoteInternalRef_PLInternal reference for a credit note, used for Poland.low confidence | Int64CreditNoteInternalRef_W | No | None | |
CurrencyCodeCurrency code of the line. | String (3)CustCurrencyCode | No | None | |
CustBillingCodeRecord ID of the billing code. | Int64BillingCodeRefRecId | No | None | |
CustDirective_PSNRecord ID of a customer directive, used for public sector.low confidence | Int64CustVendDirectiveRecId_PSN | No | None | |
CustInvoiceLineTemplateRecord ID of the free text invoice template line. | Int64RefRecId | No | None | |
CustomerLocation_INRecord ID of the customer location, used for India.low confidence | Int64RefRecId | No | None | |
CustomerTaxInformation_INRecord ID of the customer tax information, used for India.low confidence | Int64RefRecId | No | None | |
CustomsDocDate_MXDate of the customs document, used for Mexico. | DateCustomsDocDate_MX | No | None | |
CustomsDocNumber_MXCustoms document number, used for Mexico. | String (21)CustomsDocNumber_MX | No | None | |
CustomsName_MXName of the customs office, used for Mexico. | String (60)CustomsName_MX | No | None | |
CustomsTariffCodeTable_INRecord ID of the customs tariff code, used for India. | Int64RefRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionRecord ID of the default dimension set for the line. | Int64LedgerDimensionValueSet | No | None | |
DeliveryLocationRecord ID of the delivery location. | Int64LogisticsLocationRecId | No | None | |
DescriptionDescription text of the line. | String (512)TransactionTextLarge | No | None | |
EInvoiceAccountCodeAccount code of the dimension used for electronic invoices. | String (35)EInvoiceAccountCode | No | None | |
ExciseRecordType_INExcise record type (None, RG23A, RG23C or RG23D), used for India. | EnumExciseRecordType_IN (enum) | No | None | |
ExciseTariffCodes_INRecord ID of the excise tariff code, used for India. | Int64RefRecId | No | None | |
ExciseType_INExcise type (None, Manufacturer or Trader), used for India. | EnumExciseType_IN (enum) | No | None | |
Exempt_INYes/No flag for exempt status, used for India.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
ExternalInvoiceIdInvoice number given by an external party. | String (60)CustomerExternalInvoiceId | No | None | |
FinTagRecord ID of the financial tag. | Int64FinTagRecId | No | None | |
GTAServiceCategory_INService category (Inward, Inter unit or input, Others), used for India. | EnumGTAServiceCategory_IN (enum) | No | None | |
HSNCodeTable_INRecord ID of the HSN code, used for India. | Int64RefRecId | No | None | |
IntrastatCommodityRecord ID of the Intrastat commodity. | Int64IntrastatCommodityId | No | None | |
InvoiceGtd_RUCustoms declaration (GTD) number, used for Russia. | String (30)CustFreeInvoiceGTDId_RU | No | None | |
InvoiceTxtFree text note for the invoice line. | String (-1)Notes | No | None | |
ITCCategory_INInput tax credit category (Input, Capital Goods, Others), used for India. | EnumITCCategory_IN (enum) | No | None | |
ItemCodeIdCommodity code from an older Intrastat field.low confidence | StringDEL_IntrastatItemCodeId | No | None | |
LedgerDimensionRecord ID of the main account and dimension combination. | Int64LedgerDimensionDefaultAccount | No | None | |
LineNumLine number of the invoice line. | RealLineNum | No | None | |
MaximumRetailPrice_INMaximum retail price, used for India. | RealMaximumRetailPrice_IN | No | None | |
MaxRetailPricePerUnit_INMaximum retail price per unit, used for India. | RealMaximumRetailPrice_IN | No | None | |
NGPCodesTable_FRRecord ID of the NGP code, used for France. | Int64NGPCodesTableFRId | No | None | |
OrderLineReference_NOOrder line reference, used for Norway. | String (30)OrderLineReference_NO | No | None | |
OrigCountryRegionIdCountry or region of origin of the item. | StringItemOrigCountryRegionId | No | None | |
OrigStateState of origin of the item. | StringItemOrigStateId | No | None | |
OverrideSalesTaxYes/No flag that turns on an override of the sales tax setting. | EnumTaxIntegrationOverrideSalesTaxNoYes (enum) | No | None | |
PackedExtensionsPacked container holding values from extensions. | ContainerSysExtensionSerializerPackedContainer | No | None | |
ParentRecIdRecord ID of the parent free text invoice. | Int64CustInvoiceTableRefRecId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PeriodChargeInvoiceLineBaseFromDateStart date of the period used for the line's periodic charge.low confidence | DateMarkupPeriodChargeInvoiceLineBaseFromDate | No | None | |
PeriodChargeInvoiceLineBaseToDateEnd date of the period used for the line's periodic charge.low confidence | DateMarkupPeriodChargeInvoiceLineBaseToDate | No | None | |
PKWiUCode_PLPKWiU classification code, used for Poland. | String (20)PlPKWiUCode | No | None | |
PortIntrastat port code. | StringIntrastatPortId | No | None | |
ProjCategoryIdProject category ID. | String (30)ProjCategoryId | No | None | |
ProjFundingSourceRecord ID of the project funding source. | Int64ProjFundingSourceRefId | No | None | |
ProjIdProject ID the line is linked to. | String (20)ProjId | No | None | |
ProjTransIdProject transaction ID. | String (20)ProjTransIdBase | No | None | |
PropertyNumber_MXProperty number, used for Mexico. | String (20)PropertyNumber_MX | No | None | |
QuantityQuantity invoiced on the line. | RealInvoiceQuantity | No | None | |
ReasonRefRecIdRecord ID of a reason reference. | 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 | |
RefReturnInvoiceTrans_WRecord ID of the returned invoice line. | Int64RefReturnInvoiceTrans_W | No | None | |
SalesTaxFormTypes_INRecord ID of the sales tax form type, used for India. | Int64RefRecId | No | None | |
SalesUnit_RUUnit of measurement for the line, used for Russia. | StringSalesUnit | No | None | |
Samples_MXYes/No flag for a shipment of samples, used for Mexico. | EnumSamples_MXNoYes (enum) | No | None | |
SATCustomsQty_MXQuantity in customs units, used for Mexico. | RealSATCustomsQty_MX | No | None | |
SATCustomUnitOfMeasure_MXCustoms unit of measure code, used for Mexico. | StringSATCustomUnitOfMeasure_MX | No | None | |
SATProductCode_MXExternal product classification code, used for Mexico. | StringSATProductCode_MX | No | None | |
SATTariffFraction_MXTariff fraction code, used for Mexico. | StringSATTariffFraction_MX | No | None | |
SATUnitCode_MXExternal unit classification code, used for Mexico. | StringSATUnitCode_MX | No | None | |
ServiceAccountingCodeTable_INRecord ID of the service accounting code, used for India. | Int64RefRecId | No | None | |
ServiceCodeTable_INRecord ID of the service code, used for India. | Int64RefRecId | No | None | |
ServiceInvoice_BRYes/No flag showing whether this is a service invoice, used for Brazil. | EnumNoYes (enum) | No | None | |
SourceDocumentLineRecord ID of the source document line. | Int64RefRecId | No | None | |
StatProcIdIntrastat statistics procedure code. | StringIntrastatProcId | 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 of the line. | RealTaxAmount | No | None | |
TaxAutogeneratedYes/No flag for automatically generated tax. | EnumTaxAutoGeneratedNoYes (enum) | No | None | |
TaxGroupSales tax group of the line. | StringTaxGroup | No | None | |
TaxItemGroupItem sales tax group of the line. | StringTaxItemGroup | No | None | |
TaxServiceCode_BRTax service code, used for Brazil. | StringTaxServiceCodeId_BR | No | None | |
TaxWithholdGroupWithholding tax group of the line. | StringTaxWithholdGroup | No | None | |
TaxWithholdItemGroupHeading_THRecord ID of the item withholding tax group, used for Thailand. | Int64TaxWithholdItemGroupId_TH | No | None | |
TaxWriteCodePrint code for the tax. | StringTaxWriteCode | No | None | |
TCSGroup_INWithholding tax group for tax collected at source, used for India. | StringTaxWithholdGroup | No | None | |
TDSGroup_INWithholding tax group for tax deducted at source, used for India. | StringTaxWithholdGroup | No | None | |
TransactionCodeIntrastat transaction code. | StringIntrastatTransactionCodeId | No | None | |
TransportIntrastat transport method code. | StringIntrastatTransport | No | None | |
UnitPricePrice per unit on the invoice line. | RealInvoiceUnitPrice | No | None | |
WeightTotal weight of the line. | RealWeight | No | None |
Indexes (1)
ParentRecIdIdxParentRecId,LineNum,RecId,DataAreaId,PartitionUnique.
Get this data out
No public entity reads from CustInvoiceLineHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustInvoiceLineHistory in a report, an integration or a migration? Talk to Dr Dynamics.