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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TaxDocumentGuidUnique GUID of the tax document. It is the key.Guid
ERGUID
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
OriginSourceRecIdSystem record ID of the source record.Int64
RefRecId
NoNone
OriginSourceTableIdID of the table of the source record.Integer
RefTableId
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
SourceModifiedYes/No flag showing whether the source was modified.Enum
NoYesId
NoYes (enum)
NoNone
StatusStatus of the tax document: draft, posted, transferred or reversed.Enum
TaxDocumentStatus (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxCalcCurrencyTypeShows whether tax is in the transaction or accounting currency.Enum
TaxCalcCurrencyType (enum)
NoNone
TaxDocumentJsonGUID that links to the tax document JSON record.Guid
ERGUID
NoTaxDocumentJson.IDNone
TaxDocumentTaxStatusCalculation state of the document: clean, messy or dirty.Enum
TaxDocumentCalculationLevel (enum)
NoNone
TaxRuntimeDocModelVersionSystem record ID of the tax model version used.Int64
RefRecId
NoTaxRuntimeDocModelVersion.RecIdNone
VersionVersion number of the document.Integer
Version
NoNone

Indexes (4)

Relations (2)

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

  • TaxRuntimeDocModelVersion → TaxRuntimeDocModelVersion

    Join on TaxRuntimeDocModelVersion = TaxRuntimeDocModelVersion.RecId

    Many TaxDocument records → exactly one TaxRuntimeDocModelVersion record

  • TaxDocumentJson → TaxDocumentJson

    Join on TaxDocumentJson = TaxDocumentJson.ID

    Zero 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.

Email sales@drdynamics.co.uk