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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ParmIdParameter ID that ties the row to a vendor invoice.String (20)
ParmId
NoVendInvoiceInfoTable.ParmIdNone
TableRefIdLine reference that ties the row to a vendor invoice.String (20)
TradeLineRefId
YesVendInvoiceInfoTable.TableRefIdNone
OrigPurchIdPurchase order that the invoice relates to.String (20)
PurchIdOrig
NoPurchTable.PurchIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurchNameName on the purchase order.String (60)
PurchName
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
SourceAccountingEventReference to the accounting event record linked to this row.Int64
RefRecId
NoAccountingEvent.RecIdNone
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 (3)

Relations (3)

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

  • AccountingEvent → AccountingEvent

    Join on SourceAccountingEvent = AccountingEvent.RecId

    Many VendInvoiceInfoSubTable records → zero or one AccountingEvent record

  • PurchTable → PurchTable

    Join on OrigPurchId = PurchTable.PurchId

    Many VendInvoiceInfoSubTable records → zero or one PurchTable record

  • VendInvoiceInfoTable → VendInvoiceInfoTable

    Join on ParmId = VendInvoiceInfoTable.ParmId, TableRefId = VendInvoiceInfoTable.TableRefId

    Many 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.

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

Email sales@drdynamics.co.uk