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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingDistributionTemplateRecord ID of the accounting distribution template.Int64
AccountingDistributionTemplateRecId
NoNone
AmountCurAmount of the line; currency not stated in the metadata.Real
AmountCur
NoNone
AmountDetailsFree text with details about the amount.String (-1)
AmountDetails
NoNone
AssessableValue_INAssessable value in transaction currency, used for India.Real
AmountCur
NoNone
AssetBookIdFixed asset book ID for the line.String
AssetBookIdPurchSalesInvent
NoNone
AssetIdFixed asset number for the line.String (20)
AssetIdOpen
NoNone
AssetId_RUFixed asset inventory number, used for Russia.String (20)
RAssetIdOpen
NoNone
BillingCodeBilling code for the line.String
BillingCode
NoNone
Brand_MXProduct brand, used for Mexico.String (30)
BrandCode_MX
NoNone
CFOPTable_BRRecord ID of the CFOP code, used for Brazil.low confidenceInt64
RefRecId
NoNone
CompanyLocation_INRecord ID of the company location, used for India.low confidenceInt64
RefRecId
NoNone
Consignment_MXYes/No flag for a consignment shipment, used for Mexico.Enum
Consignment_MX
NoYes (enum)
NoNone
CorrectedCustInvoiceLineRecord ID of the invoice line that this line corrects.Int64
RefRecId
NoNone
CountryName_RUShort country or region name, used for Russia.String (255)
LogisticsAddressCountryRegionShortName
NoNone
CreditNoteInternalRef_PLInternal reference for a credit note, used for Poland.low confidenceInt64
CreditNoteInternalRef_W
NoNone
CurrencyCodeCurrency code of the line.String (3)
CustCurrencyCode
NoNone
CustBillingCodeRecord ID of the billing code.Int64
BillingCodeRefRecId
NoNone
CustDirective_PSNRecord ID of a customer directive, used for public sector.low confidenceInt64
CustVendDirectiveRecId_PSN
NoNone
CustInvoiceLineTemplateRecord ID of the free text invoice template line.Int64
RefRecId
NoNone
CustomerLocation_INRecord ID of the customer location, used for India.low confidenceInt64
RefRecId
NoNone
CustomerTaxInformation_INRecord ID of the customer tax information, used for India.low confidenceInt64
RefRecId
NoNone
CustomsDocDate_MXDate of the customs document, used for Mexico.Date
CustomsDocDate_MX
NoNone
CustomsDocNumber_MXCustoms document number, used for Mexico.String (21)
CustomsDocNumber_MX
NoNone
CustomsName_MXName of the customs office, used for Mexico.String (60)
CustomsName_MX
NoNone
CustomsTariffCodeTable_INRecord ID of the customs tariff code, used for India.Int64
RefRecId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionRecord ID of the default dimension set for the line.Int64
LedgerDimensionValueSet
NoNone
DeliveryLocationRecord ID of the delivery location.Int64
LogisticsLocationRecId
NoNone
DescriptionDescription text of the line.String (512)
TransactionTextLarge
NoNone
EInvoiceAccountCodeAccount code of the dimension used for electronic invoices.String (35)
EInvoiceAccountCode
NoNone
ExciseRecordType_INExcise record type (None, RG23A, RG23C or RG23D), used for India.Enum
ExciseRecordType_IN (enum)
NoNone
ExciseTariffCodes_INRecord ID of the excise tariff code, used for India.Int64
RefRecId
NoNone
ExciseType_INExcise type (None, Manufacturer or Trader), used for India.Enum
ExciseType_IN (enum)
NoNone
Exempt_INYes/No flag for exempt status, used for India.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
ExternalInvoiceIdInvoice number given by an external party.String (60)
CustomerExternalInvoiceId
NoNone
FinTagRecord ID of the financial tag.Int64
FinTagRecId
NoNone
GTAServiceCategory_INService category (Inward, Inter unit or input, Others), used for India.Enum
GTAServiceCategory_IN (enum)
NoNone
HSNCodeTable_INRecord ID of the HSN code, used for India.Int64
RefRecId
NoNone
IntrastatCommodityRecord ID of the Intrastat commodity.Int64
IntrastatCommodityId
NoNone
InvoiceGtd_RUCustoms declaration (GTD) number, used for Russia.String (30)
CustFreeInvoiceGTDId_RU
NoNone
InvoiceTxtFree text note for the invoice line.String (-1)
Notes
NoNone
ITCCategory_INInput tax credit category (Input, Capital Goods, Others), used for India.Enum
ITCCategory_IN (enum)
NoNone
ItemCodeIdCommodity code from an older Intrastat field.low confidenceString
DEL_IntrastatItemCodeId
NoNone
LedgerDimensionRecord ID of the main account and dimension combination.Int64
LedgerDimensionDefaultAccount
NoNone
LineNumLine number of the invoice line.Real
LineNum
NoNone
MaximumRetailPrice_INMaximum retail price, used for India.Real
MaximumRetailPrice_IN
NoNone
MaxRetailPricePerUnit_INMaximum retail price per unit, used for India.Real
MaximumRetailPrice_IN
NoNone
NGPCodesTable_FRRecord ID of the NGP code, used for France.Int64
NGPCodesTableFRId
NoNone
OrderLineReference_NOOrder line reference, used for Norway.String (30)
OrderLineReference_NO
NoNone
OrigCountryRegionIdCountry or region of origin of the item.String
ItemOrigCountryRegionId
NoNone
OrigStateState of origin of the item.String
ItemOrigStateId
NoNone
OverrideSalesTaxYes/No flag that turns on an override of the sales tax setting.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
PackedExtensionsPacked container holding values from extensions.Container
SysExtensionSerializerPackedContainer
NoNone
ParentRecIdRecord ID of the parent free text invoice.Int64
CustInvoiceTableRefRecId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PeriodChargeInvoiceLineBaseFromDateStart date of the period used for the line's periodic charge.low confidenceDate
MarkupPeriodChargeInvoiceLineBaseFromDate
NoNone
PeriodChargeInvoiceLineBaseToDateEnd date of the period used for the line's periodic charge.low confidenceDate
MarkupPeriodChargeInvoiceLineBaseToDate
NoNone
PKWiUCode_PLPKWiU classification code, used for Poland.String (20)
PlPKWiUCode
NoNone
PortIntrastat port code.String
IntrastatPortId
NoNone
ProjCategoryIdProject category ID.String (30)
ProjCategoryId
NoNone
ProjFundingSourceRecord ID of the project funding source.Int64
ProjFundingSourceRefId
NoNone
ProjIdProject ID the line is linked to.String (20)
ProjId
NoNone
ProjTransIdProject transaction ID.String (20)
ProjTransIdBase
NoNone
PropertyNumber_MXProperty number, used for Mexico.String (20)
PropertyNumber_MX
NoNone
QuantityQuantity invoiced on the line.Real
InvoiceQuantity
NoNone
ReasonRefRecIdRecord ID of a reason reference.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
RefReturnInvoiceTrans_WRecord ID of the returned invoice line.Int64
RefReturnInvoiceTrans_W
NoNone
SalesTaxFormTypes_INRecord ID of the sales tax form type, used for India.Int64
RefRecId
NoNone
SalesUnit_RUUnit of measurement for the line, used for Russia.String
SalesUnit
NoNone
Samples_MXYes/No flag for a shipment of samples, used for Mexico.Enum
Samples_MX
NoYes (enum)
NoNone
SATCustomsQty_MXQuantity in customs units, used for Mexico.Real
SATCustomsQty_MX
NoNone
SATCustomUnitOfMeasure_MXCustoms unit of measure code, used for Mexico.String
SATCustomUnitOfMeasure_MX
NoNone
SATProductCode_MXExternal product classification code, used for Mexico.String
SATProductCode_MX
NoNone
SATTariffFraction_MXTariff fraction code, used for Mexico.String
SATTariffFraction_MX
NoNone
SATUnitCode_MXExternal unit classification code, used for Mexico.String
SATUnitCode_MX
NoNone
ServiceAccountingCodeTable_INRecord ID of the service accounting code, used for India.Int64
RefRecId
NoNone
ServiceCodeTable_INRecord ID of the service code, used for India.Int64
RefRecId
NoNone
ServiceInvoice_BRYes/No flag showing whether this is a service invoice, used for Brazil.Enum
NoYes (enum)
NoNone
SourceDocumentLineRecord ID of the source document line.Int64
RefRecId
NoNone
StatProcIdIntrastat statistics procedure code.String
IntrastatProcId
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 of the line.Real
TaxAmount
NoNone
TaxAutogeneratedYes/No flag for automatically generated tax.Enum
TaxAutoGenerated
NoYes (enum)
NoNone
TaxGroupSales tax group of the line.String
TaxGroup
NoNone
TaxItemGroupItem sales tax group of the line.String
TaxItemGroup
NoNone
TaxServiceCode_BRTax service code, used for Brazil.String
TaxServiceCodeId_BR
NoNone
TaxWithholdGroupWithholding tax group of the line.String
TaxWithholdGroup
NoNone
TaxWithholdItemGroupHeading_THRecord ID of the item withholding tax group, used for Thailand.Int64
TaxWithholdItemGroupId_TH
NoNone
TaxWriteCodePrint code for the tax.String
TaxWriteCode
NoNone
TCSGroup_INWithholding tax group for tax collected at source, used for India.String
TaxWithholdGroup
NoNone
TDSGroup_INWithholding tax group for tax deducted at source, used for India.String
TaxWithholdGroup
NoNone
TransactionCodeIntrastat transaction code.String
IntrastatTransactionCodeId
NoNone
TransportIntrastat transport method code.String
IntrastatTransport
NoNone
UnitPricePrice per unit on the invoice line.Real
InvoiceUnitPrice
NoNone
WeightTotal weight of the line.Real
Weight
NoNone

Indexes (1)

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.

Email sales@drdynamics.co.uk