Table

MainAccountControlTaxCode

Posting control for tax code

Lists sales tax codes set for posting control on a main account. The key is the main account together with the tax code. Each row links one main account to one sales tax code.

Table name
MainAccountControlTaxCode
Module
Financial dimensions
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasic
Primary index
RecId
Replacement key
FK_MainAccount_MainAccountControlT
Key fields
MainAccount, TaxCode
Model
Foundation

Fields (7)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
MainAccountThe main account, pointing to a main account record.Int64
RefRecId
YesMainAccount.RecIdNone
TaxCodeSales tax code, pointing to the sales tax codes table.String
TaxCode
YesTaxTable.TaxCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
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

Indexes (2)

  • FK_MainAccount_MainAccountControlTReplacement key

    MainAccount, TaxCode

    Unique, alternate key.

  • FK_TaxTable_MainAccountControlTaxCode

    TaxCode

    Not unique.

Relations (3)

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

  • MainAccount → MainAccount

    Join on MainAccount = MainAccount.RecId

    Many MainAccountControlTaxCode records → exactly one MainAccount record

  • MainAccountLegalEntity → MainAccountLegalEntity

    Join on MainAccount = MainAccountLegalEntity.MainAccount

    Many MainAccountControlTaxCode records → exactly one MainAccountLegalEntity record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many MainAccountControlTaxCode records → exactly one TaxTable record

Get this data out

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

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

Email sales@drdynamics.co.uk