Table

CustBillOfExchangeInvoice

Bill of exchange invoices

Lists the customer invoices that are covered by a bill of exchange. Each record ties a bill ID to one invoice, with the customer, amounts, dates and vouchers. It links to the bill of exchange journal and to customer transactions.

Table name
CustBillOfExchangeInvoice
Module
Accounts receivable
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
CustBillOfExchange
Primary index
BillOfExchangeInvoiceIdx
Replacement key
None
Key fields
BillOfExchangeId, InvoiceId, RecId
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BillOfExchangeIdID of the bill of exchange in the bill of exchange journal.String (20)
CustBillOfExchangeID
YesCustBillOfExchangeJour.BillOfExchangeIdNone
InvoiceIdInvoice number, linked to a customer transaction.String (50)
VendInvoiceId
YesNone
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 record.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DueDateDate on which the invoice is due.Date
DueDate
NoNone
InvoiceAccountNumCustomer account the invoice belongs to.String (20)
CustAccount
NoCustTable.AccountNumNone
InvoiceAmountCurGross invoice amount in transaction currency.Real
AmountCur
NoNone
InvoiceAmountMSTInvoice amount in accounting currency.Real
AmountMST
NoNone
InvoiceCompanyCompany that holds the invoice transaction.String
CompanyId
NoNone
InvoiceDateDate of the invoice.Date
InvoiceDate
NoNone
InvoiceVoucherVoucher number of the invoice.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
RecipientAccountNumCustomer account of the recipient of the bill.String (20)
CustAccount
NoCustTable.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 of the record.String (20)
Voucher
NoNone

Indexes (1)

Relations (6)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many CustBillOfExchangeInvoice records → zero or one Currency record

  • CustBillOfExchangeJour → CustBillOfExchangeJour

    Join on BillOfExchangeId = CustBillOfExchangeJour.BillOfExchangeId

    Many CustBillOfExchangeInvoice records → exactly one CustBillOfExchangeJour record

  • CustTable → CustTable

    Join on RecipientAccountNum = CustTable.AccountNum

    Many CustBillOfExchangeInvoice records → zero or one CustTable record

  • CustTable_InvoiceAccountNum → CustTable

    Join on InvoiceAccountNum = CustTable.AccountNum

    Many CustBillOfExchangeInvoice records → zero or one CustTable record

  • CustTrans → CustTrans

    Join on BillOfExchangeId = CustTrans.BillOfExchangeID

    Many CustBillOfExchangeInvoice records → exactly one CustTrans record

  • CustTransInvoiceId → CustTrans

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

    Many CustBillOfExchangeInvoice records → exactly one CustTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk