Table

TaxesMatrix_BR

Taxes matrix

Used for Brazil. A matrix that links a fiscal establishment group, a CFOP group, a customer or vendor type, an account and an item. Each of these can be set as a single record, a group or all. It also links to sales tax group and item sales tax group.

Table name
TaxesMatrix_BR
Module
Tax
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RecId
Replacement key
TaxesMatrixIdx
Key fields
FiscalEstablishmentGroup_BR, CFOPGroup_BR, CustVendType, AccountRelation, ItemRelation
Model
Foundation

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
FiscalEstablishmentGroup_BRPoints to the fiscal establishment group that the row applies to.Int64
FiscalEstablishmentGroupRecId_BR
YesFiscalEstablishmentGroup_BR.RecIdTaxesMatrixEntity
CFOPGroup_BRPoints to the CFOP group that the row applies to.Int64
RefRecId
NoCFOPGroup_BR.RecIdTaxesMatrixEntity
CustVendTypeSays whether the row is for customers, vendors or fiscal establishments.Enum
CustVendType_BR (enum)
NoTaxesMatrixEntity
AccountRelationThe customer, customer group or fiscal establishment group that the row applies to.String (20)
InventCustVendRel
NoCustGroup.CustGroupCustTable.AccountNumFiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdFiscalEstablishment_BR.FiscalEstablishmentIdVendGroup.VendGroupVendTable.AccountNumTaxesMatrixEntity
ItemRelationThe item or item group that the row applies to.String (20)
InventItemRelation
NoInventItemGroup.ItemGroupIdInventTable.ItemIdTaxesMatrixEntity
AccountCodeShows whether the account relation is a single account, a group or all accounts.Enum
TableGroupAll (enum)
NoTaxesMatrixEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FreeTextInvoiceYes/no flag for free text invoices.Enum
FreeTextInvoice_BR
NoYes (enum)
NoTaxesMatrixEntity
ItemCodeShows whether the item relation is a single item, an item group or all items.Enum
TableGroupAll (enum)
NoTaxesMatrixEntity
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
ServiceItemsYes/no flag for service items.Enum
NoYes (enum)
NoTaxesMatrixEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupThe sales tax group linked to this matrix row.String
TaxGroup
YesTaxGroupHeading.TaxGroupTaxesMatrixEntity
TaxItemGroupThe item sales tax group linked to this matrix row.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupTaxesMatrixEntity

Indexes (2)

Relations (12)

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

  • CFOPGroup → CFOPGroup_BR

    Join on CFOPGroup_BR = CFOPGroup_BR.RecId

    Many TaxesMatrix_BR records → zero or one CFOPGroup_BR record

  • CustGroup → CustGroup

    Join on CustVendType = CustVendType_BR::Customer, AccountCode = TableGroupAll::GroupId, AccountRelation = CustGroup.CustGroup

    Many TaxesMatrix_BR records → zero or one CustGroup record

  • CustTable → CustTable

    Join on CustVendType = CustVendType_BR::Customer, AccountCode = TableGroupAll::Table, AccountRelation = CustTable.AccountNum

    Many TaxesMatrix_BR records → zero or one CustTable record

  • FiscalEstablishment_BR → FiscalEstablishment_BR

    Join on CustVendType = CustVendType_BR::FiscalEstablishment, AccountCode = TableGroupAll::Table, AccountRelation = FiscalEstablishment_BR.FiscalEstablishmentId

    Many TaxesMatrix_BR records → zero or one FiscalEstablishment_BR record

  • FiscalEstablishmentGroup → FiscalEstablishmentGroup_BR

    Join on CustVendType = CustVendType_BR::FiscalEstablishment, AccountCode = TableGroupAll::GroupId, AccountRelation = FiscalEstablishmentGroup_BR.FiscalEstablishmentGroupId

    Many TaxesMatrix_BR records → zero or one FiscalEstablishmentGroup_BR record

  • FiscalEstablishmentGroup_BR → FiscalEstablishmentGroup_BR

    Join on FiscalEstablishmentGroup_BR = FiscalEstablishmentGroup_BR.RecId

    One or more TaxesMatrix_BR records → exactly one FiscalEstablishmentGroup_BR record

  • InventItemGroup → InventItemGroup

    Join on ItemCode = TableGroupAll::GroupId, ItemRelation = InventItemGroup.ItemGroupId

    Many TaxesMatrix_BR records → zero or one InventItemGroup record

  • InventTable → InventTable

    Join on ItemCode = TableGroupAll::Table, ItemRelation = InventTable.ItemId

    Many TaxesMatrix_BR records → zero or one InventTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many TaxesMatrix_BR records → exactly one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many TaxesMatrix_BR records → zero or one TaxItemGroupHeading record

  • VendGroup → VendGroup

    Join on CustVendType = CustVendType_BR::Vendor, AccountCode = TableGroupAll::GroupId, AccountRelation = VendGroup.VendGroup

    Many TaxesMatrix_BR records → zero or one VendGroup record

  • VendTable → VendTable

    Join on CustVendType = CustVendType_BR::Vendor, AccountCode = TableGroupAll::Table, AccountRelation = VendTable.AccountNum

    Many TaxesMatrix_BR records → zero or one VendTable record

Get this data out

Tables are not exposed directly. These public entities read from TaxesMatrix_BR; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk