Table
TaxBookTaxCodes
Spanish VAT book codes
Links Spanish VAT books to sales tax codes. Each row can also name an equivalence charge code and flag non-deductible VAT or reverse charge.
- Table name
TaxBookTaxCodes- Module
Tax- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasicSalesTax- Primary index
RecId- Replacement key
TaxBookCodesIdx- Key fields
TaxBookTable, TaxCode, TaxCodeEq- Model
Foundation
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TaxBookTableThe Spanish VAT book the code belongs to. | Int64TaxBookTableRecId | Yes | TaxBookTable.RecId | None |
TaxCodeThe sales tax code included in the book. | StringTaxCode | Yes | TaxTable.TaxCode | TaxSpanishVATBookEntity |
TaxCodeEqThe sales tax code used as the equivalence charge code. | StringTaxCode | No | TaxTable.TaxCode | TaxSpanishVATBookEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NonDeductibleShows whether the VAT is non-deductible. | EnumNonDeductible_ESNoYes (enum) | No | TaxSpanishVATBookEntity | |
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 | |
ReverseChargeShows whether reverse charge applies. | EnumReverseCharge_ESNoYes (enum) | No | TaxSpanishVATBookEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
TaxBookCodesIdxReplacement keyTaxBookTable,TaxCode,TaxCodeEqUnique, alternate key.
Relations (3)
Each relation joins TaxBookTaxCodes to another table on the fields shown.
TaxBookTable→TaxBookTableJoin on
TaxBookTable = TaxBookTable.RecIdMany TaxBookTaxCodes records → exactly one TaxBookTable record
TaxTable_TaxBookTaxCodes_TaxCode→TaxTableJoin on
TaxCode = TaxTable.TaxCodeMany TaxBookTaxCodes records → exactly one TaxTable record
TaxTable_TaxBookTaxCodes_TaxCodeEq→TaxTableJoin on
TaxCodeEq = TaxTable.TaxCodeMany TaxBookTaxCodes records → zero or one TaxTable record
Get this data out
Tables are not exposed directly. These public entities read from TaxBookTaxCodes; use one of them in Power BI, Power Platform or a data management project.
TaxSpanishVATBookEntity· 4 fields from this table
Need help with TaxBookTaxCodes in a report, an integration or a migration? Talk to Dr Dynamics.