Table

VendPromissoryNoteInvoice

Promissory note invoices

Links vendor invoices to promissory notes. Each record holds the invoice, its amounts, dates and vouchers, and the note it relates to. It points to the promissory note journal, the vendor, the currency and vendor transactions.

Table name
VendPromissoryNoteInvoice
Module
Bank
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
VendPromissoryNote
Primary index
PromissoryNoteInvoiceIdx
Replacement key
None
Key fields
PromissoryNoteId, RecId
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PromissoryNoteIdID of the promissory note, linked to the promissory note journal.String (20)
VendPromissoryNoteID
YesVendPromissoryNoteJour.PromissoryNoteIdNone
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
CurrencyCodeCurrency code of the invoice amount, linked to the currency table.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DueDateDate by which the invoice is due.Date
DueDate
NoNone
InvoiceAccountNumVendor account that the invoice belongs to, linked to the vendor record.String (20)
VendAccount
NoVendTable.AccountNumNone
InvoiceAmountCurGross invoice amount in the transaction currency.Real
AmountCur
NoNone
InvoiceAmountMSTInvoice amount in the accounting currency.Real
AmountMST
NoNone
InvoiceCompanyCompany in which the related vendor invoice transaction exists.String
CompanyId
NoNone
InvoiceDateDate shown on the invoice.Date
InvoiceDate
NoNone
InvoiceIdInvoice number, which relates to a vendor transaction.String (50)
VendInvoiceId
NoNone
InvoiceVoucherVoucher number of the invoice posting.String (20)
Voucher
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecipientAccountNumVendor account that receives the promissory note, linked to the vendor record.String (20)
VendAccount
NoVendTable.AccountNumNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransDateTransaction date of the record.Date
TransDate
NoNone
VoucherVoucher number linked to this record.String (20)
Voucher
NoNone

Indexes (2)

Relations (6)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many VendPromissoryNoteInvoice records → zero or one Currency record

  • VendPromissoryNoteJour → VendPromissoryNoteJour

    Join on PromissoryNoteId = VendPromissoryNoteJour.PromissoryNoteId

    Many VendPromissoryNoteInvoice records → exactly one VendPromissoryNoteJour record

  • VendTable_InvoiceAccountNum → VendTable

    Join on InvoiceAccountNum = VendTable.AccountNum

    Many VendPromissoryNoteInvoice records → zero or one VendTable record

  • VendTable_RecipientAccountNum → VendTable

    Join on RecipientAccountNum = VendTable.AccountNum

    Many VendPromissoryNoteInvoice records → zero or one VendTable record

  • VendTrans → VendTrans

    Join on PromissoryNoteId = VendTrans.PromissoryNoteID

    Many VendPromissoryNoteInvoice records → exactly one VendTrans record

  • VendTransInvoiceId → VendTrans

    Join on InvoiceCompany = VendTrans.dataAreaId, InvoiceId = VendTrans.Invoice

    Many VendPromissoryNoteInvoice records → zero or one VendTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk