Table
TaxDocument
Tax document table
Holds tax documents. Each has a GUID as key, a status, a version and the currency type. It links to the tax model version and to a source record.
- Table name
TaxDocument- Module
Cross-module and platform- Table group
TransactionHeader- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
TaxDocumentGuid- Key fields
TaxDocumentGuid- Model
TaxEngine
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TaxDocumentGuidUnique GUID of the tax document. It is the key. | GuidERGUID | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
OriginSourceRecIdSystem record ID of the source record. | Int64RefRecId | No | None | |
OriginSourceTableIdID of the table of the source record. | IntegerRefTableId | 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 | |
SourceModifiedYes/No flag showing whether the source was modified. | EnumNoYesIdNoYes (enum) | No | None | |
StatusStatus of the tax document: draft, posted, transferred or reversed. | EnumTaxDocumentStatus (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxCalcCurrencyTypeShows whether tax is in the transaction or accounting currency. | EnumTaxCalcCurrencyType (enum) | No | None | |
TaxDocumentJsonGUID that links to the tax document JSON record. | GuidERGUID | No | TaxDocumentJson.ID | None |
TaxDocumentTaxStatusCalculation state of the document: clean, messy or dirty. | EnumTaxDocumentCalculationLevel (enum) | No | None | |
TaxRuntimeDocModelVersionSystem record ID of the tax model version used. | Int64RefRecId | No | TaxRuntimeDocModelVersion.RecId | None |
VersionVersion number of the document. | IntegerVersion | No | None |
Indexes (4)
TaxRuntimeDocModelVersionIdxNot unique.
OriginIdIdxOriginSourceRecId,OriginSourceTableIdNot unique.
TaxDocumentGuidReplacement keyUnique, alternate key.
TaxDocumentJsonIdxNot unique.
Relations (2)
Each relation joins TaxDocument to another table on the fields shown.
TaxRuntimeDocModelVersion→TaxRuntimeDocModelVersionJoin on
TaxRuntimeDocModelVersion = TaxRuntimeDocModelVersion.RecIdMany TaxDocument records → exactly one TaxRuntimeDocModelVersion record
TaxDocumentJson→TaxDocumentJsonJoin on
TaxDocumentJson = TaxDocumentJson.IDZero or one TaxDocument record → exactly one TaxDocumentJson record
Get this data out
No public entity reads from TaxDocument. Its data is only reachable through the application, a custom entity or a database export.
Need help with TaxDocument in a report, an integration or a migration? Talk to Dr Dynamics.