Data entity
BusinessDocumentSalesInvoiceLineItemEntity
Read-only lines of posted customer invoices, taken from the customer invoice lines table and joined to the invoice journal. Each row has item, quantity, unit price, discount and amounts. The key is invoice ID, invoice date and line creation sequence number. Some tax fields are used for Italy.
- Entity name
BusinessDocumentSalesInvoiceLineItemEntity- Public entity name
BusinessDocumentSalesInvoiceLineItem- OData collection
BusinessDocumentSalesInvoiceLineItems- Category
Document- Module
Other (no module in the metadata)- Read-only
Yes- Data management enabled
Yes- Configuration key
LedgerBasic- Keys
InvoiceId, InvoiceDate, LineCreationSequenceNumber- Staging table
BusinessDocumentSalesInvoiceLineItemStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/BusinessDocumentSalesInvoiceLineItems- Dataverse virtual table
mserp_businessdocumentsalesinvoicelineitementity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
CustInvoiceTrans· rootCustInvoiceJour· InnerJoin toCustInvoiceTrans
Fields (36)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
InvoiceIdInvoice number; links the line to the invoice journal. | String (20)CustInvoiceId | Yes | Yes | CustInvoiceTrans.InvoiceId | |
InvoiceDateDate of the invoice. | DateTransDate | Yes | Yes | CustInvoiceTrans.InvoiceDate | |
ItemIdItem sold on the line. | String (20)ItemId | No | Yes | InventTable.ItemId | CustInvoiceTrans.ItemId |
ItemNameFree-text description of the line. | String (1000)ItemFreeTxtBase | No | Yes | CustInvoiceTrans.Name | |
LineAmountLine amount in the transaction currency. | RealAmountCur | No | Yes | CustInvoiceTrans.LineAmount | |
LineAmountMSTLine amount in the accounting currency. | RealAmountMST | No | Yes | CustInvoiceTrans.LineAmountMST | |
LineAmountTaxPart of the line amount that is sales tax. | RealLineAmountTax | No | Yes | CustInvoiceTrans.LineAmountTax | |
LineAmountTaxMSTSales tax included in the line amount, in the accounting currency. | RealLineAmountTaxMST | No | Yes | CustInvoiceTrans.LineAmountTaxMST | |
QtyInvoiced quantity. | RealSalesInvoicedQty | No | Yes | CustInvoiceTrans.Qty | |
SalesPricePrice per unit. | RealSalesPrice | No | Yes | CustInvoiceTrans.SalesPrice | |
LineDiscLine discount value. | RealSalesLineDisc | No | Yes | CustInvoiceTrans.LineDisc | |
SalesUnitUnit of measure used for sales. | StringSalesUnit | No | Yes | UnitOfMeasure.Symbol | CustInvoiceTrans.SalesUnit |
LineCreationSequenceNumberNumber showing the order in which lines were created. | IntegerCustInvoiceLineCreationSequenceNumber | No | Yes | CustInvoiceTrans.LineCreationSequenceNumber | |
ParentRecIdPoints to the invoice journal that owns this line. | Int64RefRecId | No | Yes | CustInvoiceJour.RecId | CustInvoiceTrans.ParentRecId |
DiscAmountDiscount amount on the line. | RealSalesDiscAmount | No | Yes | CustInvoiceTrans.DiscAmount | |
DiscPercentDiscount given as a percentage. | RealSalesDiscPercent | No | Yes | CustInvoiceTrans.DiscPercent | |
InventDimIdPoints to the inventory dimensions of the line. | String (20)InventDimId | No | Yes | InventDim.inventDimId | CustInvoiceTrans.InventDimId |
InvoiceAccountCustomer account that receives the invoice. | String (20)CustInvoiceAccount | Yes | Yes | CustTable.AccountNum | CustInvoiceJour.InvoiceAccount |
CustInvoiceTransTableIdA system number that identifies the table. | IntegerTableId | No | Yes | CustInvoiceTrans.TableId | |
CustInvoiceTransRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | CustInvoiceTrans.RecId | |
ExternalItemDescriptionDescription of the item as used by the customer or an external party. | String (60)Description | No | Yes | virtual | |
ExternalItemIdItem number used by the customer or an external party. | String (20)ExternalItemId | No | Yes | virtual | |
OrigSalesIdOriginal sales order of the line. | String (20)SalesIdOrig | No | Yes | SalesTable.SalesId | CustInvoiceTrans.OrigSalesId |
LedgerVoucherVoucher number linked to the invoice. | String (20)Voucher | No | Yes | CustInvoiceJour.LedgerVoucher | |
IsReverseChargeWhole-number flag showing whether reverse charge applies to the line. | Integer | No | Yes | virtual | |
TaxRateSales tax rate value for the line. | RealTaxValue | No | Yes | virtual | |
TaxCountryRegionTypeCountry or region type of the tax, shown as text. | String (50)String50 | No | Yes | virtual | |
TaxNameName of the sales tax. | String (30)TaxName | No | Yes | virtual | |
TaxExemptCodeReason_ITReason for the tax exempt code, shown as text and used for Italy. | String (50)String50 | No | Yes | virtual | |
TaxType_ITTax type shown as text, used for Italy. | String (50)String50 | No | Yes | virtual | |
NameFree-text description of the line. | String (1000)ItemFreeTxtBase | No | Yes | CustInvoiceTrans.Name | |
PriceUnitNumber of units that the unit price covers. | RealPriceUnit | No | Yes | CustInvoiceTrans.PriceUnit | |
ItemBarCodeBar code of the item on the line. | String (80)ItemBarCode | No | Yes | virtual | |
DataAreaThe company (legal entity) that the record belongs to. | String (4)DataAreaId | No | Yes | CustInvoiceTrans.DataAreaId | |
SumLineDiscTotal line discount amount. | RealSalesSumLineDiscAmount | No | Yes | CustInvoiceTrans.SumLineDisc | |
UnitPriceNetPrice unit value for the line, as a number.low confidence | RealPriceUnit | No | Yes | virtual |
Foreign keys (6)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
ItemId→InventTable.ItemId(key of InventTable)Many CustInvoiceTrans records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
SalesUnit→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many CustInvoiceTrans records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
ParentRecId→CustInvoiceJour.RecId(key of CustInvoiceJour)Many CustInvoiceTrans records → exactly one CustInvoiceJour record
CustInvoiceJour details: see BusinessDocumentSalesInvoiceBaseEntity, ReturnInvoiceHeaderCDSEntity, SalesInvoiceHeaderV4Entity
InventDimId→InventDim.inventDimId(key of InventDim)Many CustInvoiceTrans records → zero or one InventDim record
InventDim details: see ProdProductionPickingListJournalEntryEntity, ProdReportAsFinishedProductionJournalEntryEntity, WHSExternalInventoryAdjustmentEntity
InvoiceAccount→CustTable.AccountNum(key of CustTable)Many CustInvoiceJour records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
OrigSalesId→SalesTable.SalesId(key of SalesTable)Many CustInvoiceTrans records → zero or one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
Need help with BusinessDocumentSalesInvoiceLineItemEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.