Data entity

VendorInvoiceLineEntity

Lines of vendor invoices, keyed by header reference and invoice line number. Each line holds the item, line type, quantity and price details, net amount, discounts, dimensions and category. It links to the invoice header and purchase order, with extra data for Brazil, India, Thailand, 1099 tax and public sector budget reservations.

Entity name
VendorInvoiceLineEntity
Public entity name
VendorInvoiceLine
OData collection
VendorInvoiceLines
Category
Document
Module
Accounts payable
Read-only
No
Data management enabled
Yes
Configuration key
LedgerBasic
Keys
HeaderReference, InvoiceLineNumber
Staging table
VendorInvoiceLineStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/VendorInvoiceLines
Dataverse virtual table
mserp_vendorinvoicelineentity. 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

  • VendInvoiceInfoLine · root
  • AccountingDistributionTemplate · OuterJoin to VendInvoiceInfoLine · read-only
  • CompanyInfo · OuterJoin to AccountingDistributionTemplate · read-only
  • EcoResCategory · OuterJoin to VendInvoiceInfoLine · read-only
  • EcoResCategoryHierarchy · OuterJoin to EcoResCategory · read-only
  • PCClass · Derived to EcoResCategory
  • Tax1099Fields · OuterJoin to VendInvoiceInfoLine · read-only
  • DimensionDAVS (table DimensionSetEntity) · OuterJoin to VendInvoiceInfoLine · read-only
  • MainAccountDAVC (table DimensionCombinationEntity) · OuterJoin to VendInvoiceInfoLine · read-only
  • VendInvoiceInfoTable · InnerJoin to VendInvoiceInfoLine · read-only
  • VendInvoiceInfoSubTable · InnerJoin to VendInvoiceInfoLine
  • IntrastatCommodity (table EcoResCategory) · OuterJoin to VendInvoiceInfoLine · read-only
  • IntrastatCommodity_PCClass (table PCClass) · Derived to IntrastatCommodity
  • VendInvoiceInfoLine_W · OuterJoin to VendInvoiceInfoLine
  • CFOPTable_BR · OuterJoin to VendInvoiceInfoLine_W · read-only
  • TaxWithholdItemGroupHeading_TH · OuterJoin to VendInvoiceInfoLine · read-only
  • InventDim · OuterJoin to VendInvoiceInfoLine · read-only
  • BudgetReservationLine_PSN · OuterJoin to VendInvoiceInfoLine · read-only
  • BudgetReservationHeader_PSN · OuterJoin to BudgetReservationLine_PSN · read-only
  • Tax1099BoxDetail · OuterJoin to VendInvoiceInfoLine
  • VendInvoiceInfoLineTaxExtension_IN · OuterJoin to VendInvoiceInfoLine
  • FinTag · OuterJoin to VendInvoiceInfoLine · read-only

Fields (114)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
VendorAccountVendor account of the order.String (20)
VendAccount
NoYesVendTable.AccountNumVendInvoiceInfoLine.OrderAccount
TemplateIdAccounting distribution template used on the line.Int64
AccountingDistributionTemplateRecId
NoNo (private)AccountingDistributionTemplate.RecIdVendInvoiceInfoLine.AccountingDistributionTemplate
AdvanceApplicationReferenceReference to a vendor invoice journal record, used for an advance application.Int64
RefRecId
NoNo (private)VendInvoiceJour.RecIdVendInvoiceInfoLine.AdvanceApplicationId
ChangeQuantityManuallyYes/No flag showing that the quantity was changed by hand.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesVendInvoiceInfoLine.changedManually
CloseForReceiptYes/No flag to close the line for receipt.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesVendInvoiceInfoLine.closed
CountyOrigDestCounty of origin or destination of the goods.String (30)
AddressCountyOrigDest
NoYesVendInvoiceInfoLine.CountyOrigDest
CurrencyCurrency of the line.String (3)
VendCurrencyCode
NoYesCurrency.CurrencyCodeVendInvoiceInfoLine.currencyCode
DimensionSet of financial dimension values for the line.Int64
LedgerDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdVendInvoiceInfoLine.DefaultDimension
DeliveryNameName of the delivery party.String (160)
VendName
NoYesVendInvoiceInfoLine.DeliveryName
LineDescriptionFree text describing the invoice line.String (1000)
InvoiceLineDescription
NoYesVendInvoiceInfoLine.Description
DimensionNumberInventory dimension combination for the line.String (20)
InventDimId
NoYesInventDim.inventDimIdVendInvoiceInfoLine.InventDimId
InventNowQuantity to be updated, in inventory unit.Real
InventQty
NoYesVendInvoiceInfoLine.InventNow
InvoiceAccountVendor account that is invoiced.String (20)
VendInvoiceAccount
NoYesVendTable.AccountNumVendInvoiceInfoLine.InvoiceAccount
ItemNumberItem on the line.String (20)
ItemId
NoYesInventTable.ItemIdVendInvoiceInfoLine.ItemId
NetAmountNet amount of the line, in the line currency.Real
AmountCur
NoYesVendInvoiceInfoLine.LineAmount
DiscountDiscount amount for the line.Real
PurchLineDisc
NoYesVendInvoiceInfoLine.LineDisc
LineNumberNumber of the line.Real
LineNum
NoYesVendInvoiceInfoLine.LineNum
DiscountPercentDiscount percentage for the line.Real
PurchLinePercent
NoYesVendInvoiceInfoLine.LinePercent
LineTypeType of the line: standard, prepayment, prepayment application or reverse prepayment application.Enum
PurchInvoiceLineType
  • Standard 0
  • Advance 1
  • AdvanceApplication 2
  • ReverseAdvanceApplication 3
NoYesVendInvoiceInfoLine.LineType
MultilineDiscountMultiline discount amount.Real
PurchMultiLnDisc
NoYesVendInvoiceInfoLine.MultiLnDisc
MultilineDiscountPercentageMultiline discount percentage.Real
PurchMultiLnPercent
NoYesVendInvoiceInfoLine.MultiLnPercent
OrderingDocument status that the line is updated to, such as packing slip or invoice.Enum
DocumentStatus
  • None 0
  • Quotation 1
  • PurchaseOrder 2
  • Confirmation 3
  • PickingList 4
  • PackingSlip 5
  • ReceiptsList 6
  • Invoice 7
  • ApproveJournal 8
  • ProjectInvoice 9
  • ProjectPackingSlip 10
  • CRMQuotation 11
  • Lost 12
  • Cancelled 13
  • FreeTextInvoice 14
  • RFQ 15
  • RFQAccept 16
  • RFQReject 17
  • PurchReq 18
  • RFQReSend 19
  • ConfirmationRequest 30
  • InvoiceRegistration_IN 219
  • BillOfEntry_IN 220
  • ShippingBill_IN 221
  • Invoice4Paym_RU 101
  • Facture_RU 102
  • FreeTextInvoice4Paym_RU 105
  • DeliverySlip_BR 150
  • PlSAD 103
  • DeliverySlipProject_BR 222
  • Note
  • ProjectPickingList
  • ITMGoodsInTransitReceive
  • RentalInvoiceScheduleProforma 88
  • RevRecRevenueCancelation
  • RevRecDeferredRevenueInvoice
NoYesVendInvoiceInfoLine.Ordering
PackedExtensionsPacked container that stores extension data for the line.Container
SysExtensionSerializerPackedContainer
NoYesVendInvoiceInfoLine.PackedExtensions
MainAccountMain account and dimensions, held as a dimension combination.Int64
LedgerDimensionDefaultAccount
NoNo (private)DimensionAttributeValueCombination.RecIdVendInvoiceInfoLine.PayrollLedgerDimension
AdjustedUnitPriceUnit price adjusted by attribute-based pricing.Real
PDSCalculatedUnitPrice
NoYesVendInvoiceInfoLine.PDSCalculatedUnitPrice
PDSCalculationIdID of the attribute-based pricing calculation.String
PDSCalculationId
NoYesVendInvoiceInfoLine.PDSCalculationId
CWUpdateCatch weight quantity to update.Real
PdsCWInventQty
NoYesVendInvoiceInfoLine.PdsCWReceiveNow
CWDeliveryRemainderCatch weight quantity remaining to deliver after the update.Real
PdsCWInventQty
NoYesVendInvoiceInfoLine.PdsCWRemainAfter
CWRemainingQuantityCatch weight quantity remaining before the update.Real
PdsCWInventQty
NoYesVendInvoiceInfoLine.PdsCWRemainBefore
PortPort linked to the line, for Intrastat reporting.String
IntrastatPortId
NoYesIntrastatPort.PortIdVendInvoiceInfoLine.Port
PriceUnitNumber of units that the unit price applies to.Real
PriceUnit
NoYesVendInvoiceInfoLine.PriceUnit
ProcurementCategoryProcurement category of the line.Int64
PurchCategory
NoNo (private)EcoResCategory.RecIdVendInvoiceInfoLine.ProcurementCategory
ReleaseAllRetainedAmountYes/No flag to release all retained amount.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesVendInvoiceInfoLine.PSAIsFinal
AmountRetained amount released on this line.Real
AmountCur
NoYesVendInvoiceInfoLine.PSAReleaseAmount
PercentagePercentage of retained amount released.Real
PSAReleasePercent
NoYesVendInvoiceInfoLine.PSAReleasePercent
RetainageAmountAmount retained on this line.Real
AmountCur
NoYesVendInvoiceInfoLine.PSARetainageAmount
TotalRetainedAmountTotal amount retained so far.Real
AmountCur
NoYesVendInvoiceInfoLine.PSARetainageBalance
RetainPercentagePercentage of the line that is retained.Real
PSARetainPercent
NoYesVendInvoiceInfoLine.PSARetainagePercent
ChargesOnPurchasesCharges added to the purchase.Real
PurchMarkup
NoYesVendInvoiceInfoLine.PurchMarkup
UnitPriceUnit price of the item.Real
PurchPrice
NoYesVendInvoiceInfoLine.PurchPrice
UnitUnit of measure used for purchasing.String
PurchUnit
NoYesUnitOfMeasure.SymbolVendInvoiceInfoLine.PurchUnit
ReasonTableReferenceReason reference linked to the line.Int64
ReasonRefRecID
NoNo (private)ReasonTableRef.RecIdVendInvoiceInfoLine.ReasonTableRef
ReceiveNowQuantity to be updated, in purchase unit.Real
PurchQty
NoYesVendInvoiceInfoLine.ReceiveNow
RemainAfterQuantity left to deliver after the update, in purchase unit.Real
PurchQty
NoYesVendInvoiceInfoLine.RemainAfter
RemainAfterInventQuantity left to deliver after the update, in inventory unit.Real
InventQty
NoYesVendInvoiceInfoLine.RemainAfterInvent
RemainBeforeQuantity remaining before the update, in purchase unit.Real
PurchQty
NoYesVendInvoiceInfoLine.RemainBefore
RemainBeforeInventQuantity remaining before the update, in inventory unit.Real
InventQty
NoYesVendInvoiceInfoLine.RemainBeforeInvent
OriginalDeliverRemainderOriginal remaining quantity to deliver, in inventory unit.Real
TradeRemainBeforeInventPhysical
NoYesVendInvoiceInfoLine.RemainBeforeInventPhysical
VendorInvoiceLineReviewStatusReview status of the invoice line: draft, in review, approved, rejected or cancelled.Enum
VendInvoiceRequestStatus
  • Draft 0
  • InReview 1
  • Approved 2
  • Rejected 3
  • Cancelled 4
NoYesVendInvoiceInfoLine.RequestStatus
SourceDocumentLineSource document line linked to this line.Int64
SourceDocumentLineRecId
NoNo (private)VendInvoiceInfoLine.SourceDocumentLine
StatisticsProcedureStatistics procedure used for Intrastat reporting.String
IntrastatProcId
NoYesVendInvoiceInfoLine.StatProcId
PurchaseOrderPurchase order that the line comes from.String (20)
PurchIdOrig
NoYesPurchTable.PurchIdVendInvoiceInfoLine.OrigPurchId
Tax1099AmountAmount to report on the 1099 form.Real
Tax1099Amount
NoYesVendInvoiceInfoLine.Tax1099Amount
Tax1099BoxDetailReferenceLink to 1099 detail record for this line.Int64
RefRecId
NoNo (private)Tax1099BoxDetail.RecIdVendInvoiceInfoLine.Tax1099BoxDetail
Tax1099Fields1099 box code assigned to the line.Int64
Tax1099FieldsRecId
NoNo (private)Tax1099Fields.RecIdVendInvoiceInfoLine.Tax1099Fields
DeliveryStateDelivery state for 1099 reporting.String
Tax1099State
NoYesVendInvoiceInfoLine.Tax1099State
Tax1099StateAmountState amount to report on the 1099 form.Real
Tax1099StateAmount
NoYesVendInvoiceInfoLine.Tax1099StateAmount
SalesTaxGroupSales tax group of the line.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupVendInvoiceInfoLine.TaxGroup
ItemSalesTaxItem sales tax group of the line.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupVendInvoiceInfoLine.TaxItemGroup
WithholdingTaxGroupWithholding tax group of the line.String
TaxWithholdGroup
NoYesTaxWithholdGroupHeading.TaxWithholdGroupVendInvoiceInfoLine.TaxWithholdGroup
WithholdingTaxItemGroupIdentifier of the item withholding tax group. It is the key of the table.String
TaxWithholdItemGroup_TH
NoYesTaxWithholdItemGroupHeading_TH.TaxWithholdItemGroup
TransactionCodeIntrastat transaction code of the line.String
IntrastatTransactionCodeId
NoYesIntrastatTransactionCode.TransactionCodeVendInvoiceInfoLine.TransactionCode
TransportIntrastat transport method of the line.String
IntrastatTransport
NoYesIntrastatTransportMode.TransPortCodeVendInvoiceInfoLine.Transport
CommodityCommodity code of the category.String (20)
EcoResCategoryCommodityCode
NoYesEcoResCategory.Code
OrigCountryRegionIdCountry or region where the goods originate.String
ItemOrigCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdVendInvoiceInfoLine.OrigCountryRegionId
StateOfOriginState where the goods originate.String
ItemOrigStateId
NoYesLogisticsAddressState.StateIdVendInvoiceInfoLine.OrigStateId
AccountingDistributionTemplateIdName that identifies the template.String (40)
TemplateName
NoYesAccountingDistributionTemplate.Name
LegalEntityPoints to the legal entity (company) that owns the template.Int64
LegalEntityRecId
YesNo (private)CompanyInfo.RecIdAccountingDistributionTemplate.LegalEntity
PartyIDUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
NoYesDirPartyTable.PartyNumber
DataAreaCompanyCompany ID of the legal entity. It is the key.String
SelectableDataArea
NoYesCompanyInfo.DataArea
ProcurementCategoryHierarchyPoints to the category hierarchy that the category belongs to.Int64
EcoResCategoryHierarchyId
YesNo (private)EcoResCategoryHierarchy.RecIdEcoResCategory.CategoryHierarchy
ProcurementCategoryNameName of the category.String (254)
EcoResCategoryName
NoYesEcoResCategory.Name
ProcurementCategoryHierarchyNameName of the category hierarchy.String (128)
EcoResCategoryHierarchyName
NoYesEcoResCategoryHierarchy.Name
Tax1099BoxCode of the 1099 box.String
Tax1099Box
NoYesTax1099Fields.Tax1099Box
Tax1099TypeType of 1099 form, such as 1099-MISC, 1099-NEC or 1099-INT.Enum
Tax1099Type
  • F1099DIV 7
  • F1099INT 10
  • F1099MISC 12
  • F1099OID 27
  • F1099G 13
  • F1099S 14
  • F1099NEC 29
NoYesTax1099Fields.Tax1099Type
DimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
MainAccountDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
HeaderReferenceLine reference that, with the parameter ID, identifies the invoice.String (20)
TradeLineRefId
YesYesVendInvoiceInfoTable.TableRefId
PurchLineNumberLine number of the purchase order line.Int64
TradeLineNumber
NoYesVendInvoiceInfoLine.PurchaseLineLineNumber
CFOPCodeRecIdReference to the CFOP code (fiscal operation code) for the line, used for Brazil.Int64
RefRecId
NoNo (private)CFOPTable_BR.RecIdVendInvoiceInfoLine_W.CFOPTable_BR
TaxServiceCodeService tax code for the line, used for Brazil.String
TaxServiceCodeId_BR
NoYesVendInvoiceInfoLine_W.TaxServiceCode_BR
TaxWithholdGroupWithholding tax group of the line.String
TaxWithholdGroup
NoYesTaxWithholdGroupHeading.TaxWithholdGroupVendInvoiceInfoLine.TaxWithholdGroup
TaxWithholdItemGroupItem withholding tax group, used for Thailand.Int64
TaxWithholdItemGroupId_TH
NoNo (private)TaxWithholdItemGroupHeading_TH.RecIdVendInvoiceInfoLine.TaxWithholdItemGroupHeadingId
CFOPCodeCFOP code.String (5)
CustVendCFOPId_BR
NoYesCFOPTable_BR.CFOPId
TaxWithholdItemGroupNameDescription text of the item withholding tax group.String (60)
Description
NoYesTaxWithholdItemGroupHeading_TH.Name
DiotOperationTypeType of operation for the DIOT report, such as sales of goods or rent, used for Mexico.Enum
VendorOperationType_MX
  • Blank 0
  • SalesGoods 2
  • ProServices 3
  • RentLease 6
  • ImportGoodsServices 7
  • ImportVirtualTransfer 8
  • Other 85
  • GlobalOperations 87
NoYesVendInvoiceInfoLine_W.DiotOperationType
ItemNameName of the item on the invoice line.String (120)NoYesvirtual
InvoiceLineNumberLine number on the invoice.Real
LineNum
NoYesVendInvoiceInfoLine.InvoiceLineNum
InventorySiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
InventoryWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
ProductSizeIdSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
ProductColorIdColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
ProductConfigurationIdConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
ProductStyleIdStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
ProductVersionIdVersion of the product.String
EcoResItemVersionName
NoYesEcoResVersion.NameInventDim.InventVersionId
ItemBatchNumberBatch number of the inventory.String (20)
InventBatchId
NoYesInventDim.inventBatchId
OrderedInventoryStatusIdInventory status of the stock.String
WHSInventStatusId
NoYesWHSInventStatus.InventStatusIdInventDim.InventStatusId
BudgetReservationLineRecIdBudget reservation line linked to this line, used for public sector.Int64
BudgetReservationLineRecId_PSN
NoNo (private)BudgetReservationLine_PSN.RecIdVendInvoiceInfoLine.BudgetReservationLine_PSN
BudgetReservationLineNumberNumber of the line within the reservation.Integer
BudgetReservationLineNumber_PSN
NoYesBudgetReservationLine_PSN.LineNumber
BudgetReservationDocumentNumberUnique number of the reservation document. It is the key of the table.String (20)
BudgetReservationDocumentNumber_PSN
NoYesBudgetReservationHeader_PSN.DocumentNumber
InvoiceTransactionDateTransaction date.Date
TransDate
NoNo (private)VendInvoiceInfoTable.TransDate
Tax1099SClosingDateClosing date of the sale, for box S-1.Date
Tax1099DateOfClosing
NoYesTax1099BoxDetail.Tax1099DateOfClosing
Tax1099GTaxYearTax year that the 1099 amount covers, for box G-3.Integer
Tax1099TaxYear
NoYesTax1099BoxDetail.Tax1099TaxYear
Tax1099SAddressOrLegalDescriptionAddress or legal description of the property, for box S-3.String (39)
Tax1099AddressOrLegalDesc
NoYesTax1099BoxDetail.Tax1099AddressorLegalDesc
Tax1099SBuyerPartOfRealEstateTaxAmountPart of the real estate tax paid by the buyer, for box S-6.Real
Tax1099BuyersTax
NoYesTax1099BoxDetail.Tax1099BuyersTax
IsTax1099SPropertyOrServicesYes/No flag for whether the transferor received property or services, for box S-4.Enum
Tax1099PropertyOrServices
NoYes

Platform enum: values not in the metadata extract.

NoYesTax1099BoxDetail.Tax1099PropertyOrServices
Tax1099GVendorStateTaxIdState identification number, for box G-10b.String (11)
Tax1099StateTaxID
NoYesTax1099BoxDetail.Tax1099StateTaxID
Tax1099GStateTaxWithheldAmountState income tax withheld, for box G-11.Real
Tax1099StateTaxWithheld
NoYesTax1099BoxDetail.Tax1099StateTaxWithheld
IsTax1099GTradeOrBusinessIncomeYes/No flag for trade or business income, for box G-8.Enum
Tax1099TradeOrBusiness
NoYes

Platform enum: values not in the metadata extract.

NoYesTax1099BoxDetail.Tax1099TradeOrBusiness
Tax1099GVendorStateIdState for box G-10a.String
LogisticsAddressStateId
NoYesTax1099BoxDetail.State
OverrideSalesTaxYes/No flag that lets the line override the tax determination.Enum
TaxIntegrationOverrideSalesTax
NoYes

Platform enum: values not in the metadata extract.

NoYesVendInvoiceInfoLine.OverrideSalesTax
FinTagDisplayValueLong text showing the tag values together in a readable form.String (-1)
FinTagDisplayValue
YesYesFinTag.DisplayValue
ImportedTaxTotal sales tax that was imported with the invoice line.Real
VendInvoiceImportedSalesTax
NoYesVendInvoiceInfoLine.ImportedTax
ImportedTaxRateSales tax rate that was imported with the invoice line.Real
VendInvoiceLineImportedTaxRate
NoYesVendInvoiceInfoLine.ImportedTaxRate

Foreign keys (37)

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.

Need help with VendorInvoiceLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk