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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TransVoucherVoucher number of the linked transaction. | String (20)Voucher | Yes | None | |
TransDateDate of the linked transaction. | DateTransDate | Yes | None | |
TaxDocumentRecIdPoints to the tax document being linked. | Int64CzTaxDocumentTableRefRecId | Yes | CzTaxDocumentTable.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransTableIdID of the table that holds the linked transaction. | IntegerRefTableId | No | None |
Indexes (1)
VoucherDateIdxPrimary indexReplacement keyTransVoucher,TransDate,TaxDocumentRecIdUnique, alternate key.
Relations (3)
Each relation joins CzTaxDocumentLink to another table on the fields shown.
CustTrans→CustTransJoin on
TransTableId = CustTrans.TableId,TransDate = CustTrans.TransDate,TransVoucher = CustTrans.VoucherMany CzTaxDocumentLink records → zero or one CustTrans record
CzTaxDocumentTable→CzTaxDocumentTableJoin on
TaxDocumentRecId = CzTaxDocumentTable.RecIdOne or more CzTaxDocumentLink records → exactly one CzTaxDocumentTable record
VendTrans→VendTransJoin on
TransTableId = VendTrans.TableId,TransDate = VendTrans.TransDate,TransVoucher = VendTrans.VoucherMany 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.