Table

TaxDocumentComponentLine

Tax document component line

Holds tax component lines for a tax document row. Each line links to the document, row, component version and posting profile version. It also holds the tax bucket, tax period, exchange rate type and date, and accounting results.

Table name
TaxDocumentComponentLine
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
TaxEngine

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ComponentLookupAccountingSystem record ID of the accounting lookup result for the component.Int64
RefRecId
NoTaxRuntimeLookupAccountingResult.RecIdNone
ExchangeRateDateDate of the exchange rate.Date
ExchangeRateDate
NoNone
ExchangeRateTypeSystem record ID of the exchange rate type.Int64
RefRecId
NoExchangeRateType.RecIdNone
HasAccountingYes/No flag showing whether the line has accounting.Enum
NoYesId
NoYes (enum)
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
TaxBucketSystem record ID of the tax bucket node.Int64
TaxBucketId
NoTaxBucketHierarchyTable.RecIdNone
TaxDocumentSystem record ID of the tax document.Int64
RefRecId
YesTaxDocument.RecIdNone
TaxDocumentRowSystem record ID of the tax document row.Int64
RefRecId
YesTaxDocumentRow.RecIdNone
TaxPeriodIdID of the tax period.String (15)
TaxPeriodId
NoTaxPeriodHeader.TaxPeriodIdNone
TaxRuntimeDocComponentPostingProfileVersionSystem record ID of the component posting profile version.Int64
RefRecId
NoTaxRtDocCompPostingProfVersion.RecIdNone
TaxRuntimeDocComponentVersionSystem record ID of the tax component version.Int64
RefRecId
NoTaxRuntimeDocComponentVersion.RecIdNone
TaxTypeLookupAccountingSystem record ID of the accounting lookup result for the tax type.Int64
RefRecId
NoTaxRuntimeLookupAccountingResult.RecIdNone

Indexes (4)

Relations (9)

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

  • TaxDocumentRow → TaxDocumentRow

    Join on TaxDocumentRow = TaxDocumentRow.RecId

    Many TaxDocumentComponentLine records → exactly one TaxDocumentRow record

  • TaxDocument → TaxDocument

    Join on TaxDocument = TaxDocument.RecId

    Many TaxDocumentComponentLine records → exactly one TaxDocument record

  • ExchangeRateType → ExchangeRateType

    Join on ExchangeRateType = ExchangeRateType.RecId

    Many TaxDocumentComponentLine records → exactly one ExchangeRateType record

  • TaxRuntimeDocComponentVersion → TaxRuntimeDocComponentVersion

    Join on TaxRuntimeDocComponentVersion = TaxRuntimeDocComponentVersion.RecId

    Many TaxDocumentComponentLine records → exactly one TaxRuntimeDocComponentVersion record

  • TaxBucketHierarchyTable → TaxBucketHierarchyTable

    Join on TaxBucket = TaxBucketHierarchyTable.RecId

    Many TaxDocumentComponentLine records → zero or one TaxBucketHierarchyTable record

  • TaxPeriod → TaxPeriodHeader

    Join on TaxPeriodId = TaxPeriodHeader.TaxPeriodId

    Many TaxDocumentComponentLine records → zero or one TaxPeriodHeader record

  • TaxRuntimeDocComponentPostingProfileVersion → TaxRtDocCompPostingProfVersion

    Join on TaxRuntimeDocComponentPostingProfileVersion = TaxRtDocCompPostingProfVersion.RecId

    Many TaxDocumentComponentLine records → exactly one TaxRtDocCompPostingProfVersion record

  • ComponentLookupAccountingResult → TaxRuntimeLookupAccountingResult

    Join on ComponentLookupAccounting = TaxRuntimeLookupAccountingResult.RecId

    Many TaxDocumentComponentLine records → exactly one TaxRuntimeLookupAccountingResult record

  • TaxTypeLookupAccountingResult → TaxRuntimeLookupAccountingResult

    Join on TaxTypeLookupAccounting = TaxRuntimeLookupAccountingResult.RecId

    Many TaxDocumentComponentLine records → exactly one TaxRuntimeLookupAccountingResult record

Get this data out

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

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

Email sales@drdynamics.co.uk