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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TaxBookTableThe Spanish VAT book the code belongs to.Int64
TaxBookTableRecId
YesTaxBookTable.RecIdNone
TaxCodeThe sales tax code included in the book.String
TaxCode
YesTaxTable.TaxCodeTaxSpanishVATBookEntity
TaxCodeEqThe sales tax code used as the equivalence charge code.String
TaxCode
NoTaxTable.TaxCodeTaxSpanishVATBookEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NonDeductibleShows whether the VAT is non-deductible.Enum
NonDeductible_ES
NoYes (enum)
NoTaxSpanishVATBookEntity
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
ReverseChargeShows whether reverse charge applies.Enum
ReverseCharge_ES
NoYes (enum)
NoTaxSpanishVATBookEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

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

  • TaxBookTable → TaxBookTable

    Join on TaxBookTable = TaxBookTable.RecId

    Many TaxBookTaxCodes records → exactly one TaxBookTable record

  • TaxTable_TaxBookTaxCodes_TaxCode → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many TaxBookTaxCodes records → exactly one TaxTable record

  • TaxTable_TaxBookTaxCodes_TaxCodeEq → TaxTable

    Join on TaxCodeEq = TaxTable.TaxCode

    Many 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.

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

Email sales@drdynamics.co.uk