Table
VendInvoiceInfoSubTable
Vendor invoice - purchase order relation table
Links a vendor invoice to the purchase orders it covers. The key is the parameter ID, line reference and original purchase order. It points to PurchTable and to VendInvoiceInfoTable, and can hold an accounting event reference.
- Table name
VendInvoiceInfoSubTable- Module
Accounts payable- Table group
TransactionLine- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
TableRefIdx- Replacement key
TableRefIdx- Key fields
ParmId, TableRefId, OrigPurchId- Model
Foundation
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ParmIdParameter ID that ties the row to a vendor invoice. | String (20)ParmId | No | VendInvoiceInfoTable.ParmId | None |
TableRefIdLine reference that ties the row to a vendor invoice. | String (20)TradeLineRefId | Yes | VendInvoiceInfoTable.TableRefId | None |
OrigPurchIdPurchase order that the invoice relates to. | String (20)PurchIdOrig | No | PurchTable.PurchId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PurchNameName on the purchase order. | String (60)PurchName | 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 | |
SourceAccountingEventReference to the accounting event record linked to this row. | Int64RefRecId | No | AccountingEvent.RecId | 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 |
Indexes (3)
TableRefIdxPrimary indexReplacement keyParmId,TableRefId,OrigPurchIdUnique, alternate key.
AccountingEventIdxNot unique.
OrigPurchIdIdxNot unique.
Relations (3)
Each relation joins VendInvoiceInfoSubTable to another table on the fields shown.
AccountingEvent→AccountingEventJoin on
SourceAccountingEvent = AccountingEvent.RecIdMany VendInvoiceInfoSubTable records → zero or one AccountingEvent record
PurchTable→PurchTableJoin on
OrigPurchId = PurchTable.PurchIdMany VendInvoiceInfoSubTable records → zero or one PurchTable record
VendInvoiceInfoTable→VendInvoiceInfoTableJoin on
ParmId = VendInvoiceInfoTable.ParmId,TableRefId = VendInvoiceInfoTable.TableRefIdMany VendInvoiceInfoSubTable records → exactly one VendInvoiceInfoTable record
Get this data out
Tables are not exposed directly. These public entities read from VendInvoiceInfoSubTable; use one of them in Power BI, Power Platform or a data management project.
VendorInvoiceLineEntity· 0 fields from this table
Need help with VendInvoiceInfoSubTable in a report, an integration or a migration? Talk to Dr Dynamics.