Table

CzCustAdvanceInvoiceLink

Linking prepayments to advance invoices

Links a customer prepayment to an advance invoice. Used for Czech Republic. The key combines the advance invoice, voucher, date and the invoice and payment companies.

Table name
CzCustAdvanceInvoiceLink
Module
Accounts receivable
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
CzCustVendAdvanceInvoices
Primary index
VoucherDateIdx
Replacement key
None
Key fields
AdvanceInvoiceRecId, Voucher, TransDate, InvoiceCompany, PaymentCompany
Model
Foundation

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AdvanceInvoiceRecIdSystem record ID of the advance invoice.Int64
CzCustAdvanceInvoiceRecId
NoCzCustAdvanceInvoiceTable.RecIdNone
VoucherVoucher number of the payment transaction.String (20)
Voucher
YesNone
TransDateDate of the payment transaction.Date
TransDate
YesNone
InvoiceCompanyCompany that holds the advance invoice.String
CompanyId
YesCzCustAdvanceInvoiceTable.dataAreaIdNone
PaymentCompanyCompany that holds the customer payment transaction.String
CompanyId
YesNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (5)

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

  • CustTrans → CustTrans

    Join on Voucher = CustTrans.Voucher, TransDate = CustTrans.TransDate, PaymentCompany = CustTrans.dataAreaId

    Many CzCustAdvanceInvoiceLink records → exactly one CustTrans record

  • CzCustAdvanceInvoiceTable → CzCustAdvanceInvoiceTable

    Join on AdvanceInvoiceRecId = CzCustAdvanceInvoiceTable.RecId, InvoiceCompany = CzCustAdvanceInvoiceTable.dataAreaId

    Many CzCustAdvanceInvoiceLink records → zero or one CzCustAdvanceInvoiceTable record

  • InvoiceCompany → DataArea

    Join on InvoiceCompany = DataArea.id, DataArea.isVirtual = null

    Many CzCustAdvanceInvoiceLink records → exactly one DataArea record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on Voucher = LedgerJournalTrans.Voucher, TransDate = LedgerJournalTrans.TransDate, PaymentCompany = LedgerJournalTrans.dataAreaId

    Many CzCustAdvanceInvoiceLink records → exactly one LedgerJournalTrans record

  • PaymentCompany → DataArea

    Join on PaymentCompany = DataArea.id, DataArea.isVirtual = null

    Many CzCustAdvanceInvoiceLink records → exactly one DataArea record

Get this data out

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

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

Email sales@drdynamics.co.uk