Table

VendInvoicePurchLink

Posted vendor invoice - purchase order relation table

Relates a posted vendor invoice to the purchase order it came from. Each row has the invoice number, internal invoice, date, invoice and order accounts, and the purchase order. It has no defined key.

Table name
VendInvoicePurchLink
Module
Accounts payable
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
internalInvoiceIdInternal invoice number that matches an invoice journal record.String (20)
PurchInternalInvoiceId
YesNone
invoiceAccountVendor account the invoice is issued to.String (20)
VendInvoiceAccount
NoVendTable.AccountNumNone
invoiceDateDate of the invoice.Date
TransDate
YesNone
invoiceIdNumber of the vendor invoice.String (50)
VendInvoiceId
YesNone
orderAccountVendor account on the order.String (20)
VendAccount
NoVendTable.AccountNumNone
origPurchIdOriginal purchase order number.String (20)
PurchIdOrig
NoPurchTable.PurchIdNone
parmIdParameter ID for the invoice posting record.low confidenceString (20)
ParmId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
purchIdPurchase order number the invoice relates to.String (20)
PurchId
NoPurchTable.PurchIdNone
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
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 (2)

Relations (5)

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

  • purchTable_origPurchId → PurchTable

    Join on origPurchId = PurchTable.PurchId

    Many VendInvoicePurchLink records → zero or one PurchTable record

  • PurchTable_purchId → PurchTable

    Join on purchId = PurchTable.PurchId

    Many VendInvoicePurchLink records → zero or one PurchTable record

  • vendInvoiceJour → VendInvoiceJour

    Join on purchId = VendInvoiceJour.PurchId, invoiceId = VendInvoiceJour.InvoiceId, internalInvoiceId = VendInvoiceJour.InternalInvoiceId, invoiceDate = VendInvoiceJour.InvoiceDate

    Many VendInvoicePurchLink records → exactly one VendInvoiceJour record

  • VendTable_invoiceAccount → VendTable

    Join on invoiceAccount = VendTable.AccountNum

    Many VendInvoicePurchLink records → zero or one VendTable record

  • VendTable_orderAccount → VendTable

    Join on orderAccount = VendTable.AccountNum

    Many VendInvoicePurchLink records → zero or one VendTable record

Get this data out

No public entity reads from VendInvoicePurchLink. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk