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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
MainAccountThe main account, pointing to a main account record. | Int64RefRecId | Yes | MainAccount.RecId | None |
TaxCodeSales tax code, pointing to the sales tax codes table. | StringTaxCode | Yes | TaxTable.TaxCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
FK_MainAccount_MainAccountControlTReplacement keyUnique, alternate key.
FK_TaxTable_MainAccountControlTaxCodeNot unique.
Relations (3)
Each relation joins MainAccountControlTaxCode to another table on the fields shown.
MainAccount→MainAccountJoin on
MainAccount = MainAccount.RecIdMany MainAccountControlTaxCode records → exactly one MainAccount record
MainAccountLegalEntity→MainAccountLegalEntityJoin on
MainAccount = MainAccountLegalEntity.MainAccountMany MainAccountControlTaxCode records → exactly one MainAccountLegalEntity record
TaxTable→TaxTableJoin on
TaxCode = TaxTable.TaxCodeMany 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.