Table

CzTaxDocumentLink

Link

Links a tax document to a transaction by voucher and date. It is keyed by voucher, date and tax document, and relates to customer and vendor transactions. It is used for Czech Republic advance invoices and is switched on by a configuration key for customer and vendor advance invoices.

Table name
CzTaxDocumentLink
Module
Tax
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
CzCustVendAdvanceInvoices
Primary index
VoucherDateIdx
Replacement key
VoucherDateIdx
Key fields
TransVoucher, TransDate, TaxDocumentRecId
Model
Foundation

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TransVoucherVoucher number of the linked transaction.String (20)
Voucher
YesNone
TransDateDate of the linked transaction.Date
TransDate
YesNone
TaxDocumentRecIdPoints to the tax document being linked.Int64
CzTaxDocumentTableRefRecId
YesCzTaxDocumentTable.RecIdNone
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
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
TransTableIdID of the table that holds the linked transaction.Integer
RefTableId
NoNone

Indexes (1)

Relations (3)

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

  • CustTrans → CustTrans

    Join on TransTableId = CustTrans.TableId, TransDate = CustTrans.TransDate, TransVoucher = CustTrans.Voucher

    Many CzTaxDocumentLink records → zero or one CustTrans record

  • CzTaxDocumentTable → CzTaxDocumentTable

    Join on TaxDocumentRecId = CzTaxDocumentTable.RecId

    One or more CzTaxDocumentLink records → exactly one CzTaxDocumentTable record

  • VendTrans → VendTrans

    Join on TransTableId = VendTrans.TableId, TransDate = VendTrans.TransDate, TransVoucher = VendTrans.Voucher

    Many CzTaxDocumentLink records → zero or one VendTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk