Table

PlCustAdvanceInvoiceItems

Advance invoice items

Holds item lines of a customer advance invoice, with the original item, quantity, price, tax and amounts. Each line points to its advance invoice header and to a source line such as a free text invoice line.

Table name
PlCustAdvanceInvoiceItems
Module
Cross-module and platform
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
CzCustVendAdvanceInvoices
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (19)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LineNumLine number on the advance invoice.Real
LineNum
NoCustAdvancedInvoiceItemsEntity
OriginalItemIdItem number of the original line.String (20)
ItemId
NoCustAdvancedInvoiceItemsEntity
OriginalItemNameProduct name of the original line.String (60)
ItemName
NoCustAdvancedInvoiceItemsEntity
OriginalLineAmountExclTaxNet line amount without sales tax.Real
SalesLineAmount
NoCustAdvancedInvoiceItemsEntity
OriginalLineAmountInclTaxLine amount including sales tax. The label says net amount.low confidenceReal
SalesLineAmount
NoCustAdvancedInvoiceItemsEntity
OriginalQtyQuantity on the original line.Real
Qty
NoCustAdvancedInvoiceItemsEntity
OriginalSalesPriceExclTaxSales price excluding tax.Real
SalesPrice
NoCustAdvancedInvoiceItemsEntity
OriginalSalesUnitUnit of measure used for the sales quantity.String
SalesUnit
NoCustAdvancedInvoiceItemsEntity
OriginalTaxAmountSales tax amount on the line.Real
TaxAmount
NoCustAdvancedInvoiceItemsEntity
OriginalTaxCodeSales tax code on the line.String
TaxCode
NoCustAdvancedInvoiceItemsEntity
ParentRecIdSystem record ID of the advance invoice this line belongs to.Int64
RefRecId
YesCzCustAdvanceInvoiceTable.RecIdCustAdvancedInvoiceItemsEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
RefRecIdSystem record ID of the source line, such as a customer free text invoice line.Int64
RefRecId
YesCustAdvancedInvoiceItemsEntity
RefTableIdID of the table that the source line comes from.Integer
RefTableId
YesCustAdvancedInvoiceItemsEntity
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

Indexes (1)

Relations (4)

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

  • CustInvoiceLine → CustInvoiceLine

    Join on RefTableId = CustInvoiceLine.TableId, RefRecId = CustInvoiceLine.RecId

    Zero or one PlCustAdvanceInvoiceItems record → zero or one CustInvoiceLine record

  • CzCustAdvanceInvoiceTable → CzCustAdvanceInvoiceTable

    Join on ParentRecId = CzCustAdvanceInvoiceTable.RecId

    Many PlCustAdvanceInvoiceItems records → exactly one CzCustAdvanceInvoiceTable record

  • PlCustAdvanceInvoiceItems → PlCustAdvanceInvoiceItems

    Join on RefTableId = PlCustAdvanceInvoiceItems.TableId, RefRecId = PlCustAdvanceInvoiceItems.RecId

    Zero or one PlCustAdvanceInvoiceItems record → zero or one PlCustAdvanceInvoiceItems record

  • SalesLine → SalesLine

    Join on RefTableId = SalesLine.TableId, RefRecId = SalesLine.RecId

    Zero or one PlCustAdvanceInvoiceItems record → zero or one SalesLine record

Get this data out

Tables are not exposed directly. These public entities read from PlCustAdvanceInvoiceItems; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk