Table

TaxSettlementSession

Tax settlement session

Holds one tax settlement session. It records the tax period and date range, the start and end time, the tax type and the tax registration number. It also keeps the version selection, the setoff rules, a settlement contract ID and a link to the tax setup.

Table name
TaxSettlementSession
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 (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
EndDateTimeDate and time when the session ended.UtcDateTime
EndDateTime
NoNone
FromDateFirst date of the tax period for the session.Date
FromDate
NoTaxPeriodDetail.FromDateNone
FromDateUIFrom date, as shown to the user on screen.low confidenceDate
FromDate
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
SettlementContractChangedYes/No flag showing whether the tax settlement contract has changed.Enum
NoYesId
NoYes (enum)
NoNone
SettlementContractIdUnique identifier (GUID) of the tax settlement contract.Guid
TaxSettlementContractId
NoNone
StartDateTimeDate and time when the session started.UtcDateTime
StartDateTime
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxPeriodIdTax period that the session covers. Together with the from and to dates, it points to the tax period setup.String (15)
TaxPeriodId
NoTaxPeriodDetail.TaxPeriodIdNone
TaxRegNumberTax registration number that the session applies to.String (60)
TaxRegNumber
NoNone
TaxSettlementRulesStored set of tax setoff rules for the session, kept as a container.Container
TaxSettlementRuleContainer
NoNone
TaxSolutionScopePoints to the tax setup used by the session.Int64
TaxSolutionScopeRecId
NoTaxSolutionScope.RecIdNone
TaxTypePoints to the tax runtime tax type used in the session.Int64
TaxRuntimeTaxTypeRecId
NoTaxRuntimeTaxType.RecIdNone
ToDateLast date of the tax period for the session.Date
ToDate
NoTaxPeriodDetail.ToDateNone
TransDateTransaction date of the session.Date
TransDate
NoNone
VersionSelectionChooses which version of the period is used: the original or the latest.Enum
TaxSettlementPeriodVersionSelection (enum)
NoNone

Indexes (1)

Relations (3)

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

  • TaxPeriodDetail → TaxPeriodDetail

    Join on TaxPeriodId = TaxPeriodDetail.TaxPeriodId, FromDate = TaxPeriodDetail.FromDate, ToDate = TaxPeriodDetail.ToDate

    Many TaxSettlementSession records → zero or one TaxPeriodDetail record

  • TaxRuntimeTaxType → TaxRuntimeTaxType

    Join on TaxType = TaxRuntimeTaxType.RecId

    Many TaxSettlementSession records → zero or one TaxRuntimeTaxType record

  • TaxSolutionScope → TaxSolutionScope

    Join on TaxSolutionScope = TaxSolutionScope.RecId

    Many TaxSettlementSession records → exactly one TaxSolutionScope record

Get this data out

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

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

Email sales@drdynamics.co.uk