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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
FiscalEstablishmentGroup_BRPoints to the fiscal establishment group that the row applies to. | Int64FiscalEstablishmentGroupRecId_BR | Yes | FiscalEstablishmentGroup_BR.RecId | TaxesMatrixEntity |
CFOPGroup_BRPoints to the CFOP group that the row applies to. | Int64RefRecId | No | CFOPGroup_BR.RecId | TaxesMatrixEntity |
CustVendTypeSays whether the row is for customers, vendors or fiscal establishments. | EnumCustVendType_BR (enum) | No | TaxesMatrixEntity | |
AccountRelationThe customer, customer group or fiscal establishment group that the row applies to. | String (20)InventCustVendRel | No | CustGroup.CustGroupCustTable.AccountNumFiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdFiscalEstablishment_BR.FiscalEstablishmentIdVendGroup.VendGroupVendTable.AccountNum | TaxesMatrixEntity |
ItemRelationThe item or item group that the row applies to. | String (20)InventItemRelation | No | InventItemGroup.ItemGroupIdInventTable.ItemId | TaxesMatrixEntity |
AccountCodeShows whether the account relation is a single account, a group or all accounts. | EnumTableGroupAll (enum) | No | TaxesMatrixEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FreeTextInvoiceYes/no flag for free text invoices. | EnumFreeTextInvoice_BRNoYes (enum) | No | TaxesMatrixEntity | |
ItemCodeShows whether the item relation is a single item, an item group or all items. | EnumTableGroupAll (enum) | No | TaxesMatrixEntity | |
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 | |
ServiceItemsYes/no flag for service items. | EnumNoYes (enum) | No | TaxesMatrixEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxGroupThe sales tax group linked to this matrix row. | StringTaxGroup | Yes | TaxGroupHeading.TaxGroup | TaxesMatrixEntity |
TaxItemGroupThe item sales tax group linked to this matrix row. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | TaxesMatrixEntity |
Indexes (2)
TaxesMatrixIdxReplacement keyFiscalEstablishmentGroup_BR,CFOPGroup_BR,CustVendType,AccountRelation,ItemRelationUnique, alternate key.
MatrixSearchAccountCode,CFOPGroup_BR,FiscalEstablishmentGroup_BR,ServiceItems,CustVendType,AccountRelation,ItemRelation,ItemCodeNot unique.
Relations (12)
Each relation joins TaxesMatrix_BR to another table on the fields shown.
CFOPGroup→CFOPGroup_BRJoin on
CFOPGroup_BR = CFOPGroup_BR.RecIdMany TaxesMatrix_BR records → zero or one CFOPGroup_BR record
CustGroup→CustGroupJoin on
CustVendType = CustVendType_BR::Customer,AccountCode = TableGroupAll::GroupId,AccountRelation = CustGroup.CustGroupMany TaxesMatrix_BR records → zero or one CustGroup record
CustTable→CustTableJoin on
CustVendType = CustVendType_BR::Customer,AccountCode = TableGroupAll::Table,AccountRelation = CustTable.AccountNumMany TaxesMatrix_BR records → zero or one CustTable record
FiscalEstablishment_BR→FiscalEstablishment_BRJoin on
CustVendType = CustVendType_BR::FiscalEstablishment,AccountCode = TableGroupAll::Table,AccountRelation = FiscalEstablishment_BR.FiscalEstablishmentIdMany TaxesMatrix_BR records → zero or one FiscalEstablishment_BR record
FiscalEstablishmentGroup→FiscalEstablishmentGroup_BRJoin on
CustVendType = CustVendType_BR::FiscalEstablishment,AccountCode = TableGroupAll::GroupId,AccountRelation = FiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdMany TaxesMatrix_BR records → zero or one FiscalEstablishmentGroup_BR record
FiscalEstablishmentGroup_BR→FiscalEstablishmentGroup_BRJoin on
FiscalEstablishmentGroup_BR = FiscalEstablishmentGroup_BR.RecIdOne or more TaxesMatrix_BR records → exactly one FiscalEstablishmentGroup_BR record
InventItemGroup→InventItemGroupJoin on
ItemCode = TableGroupAll::GroupId,ItemRelation = InventItemGroup.ItemGroupIdMany TaxesMatrix_BR records → zero or one InventItemGroup record
InventTable→InventTableJoin on
ItemCode = TableGroupAll::Table,ItemRelation = InventTable.ItemIdMany TaxesMatrix_BR records → zero or one InventTable record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany TaxesMatrix_BR records → exactly one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany TaxesMatrix_BR records → zero or one TaxItemGroupHeading record
VendGroup→VendGroupJoin on
CustVendType = CustVendType_BR::Vendor,AccountCode = TableGroupAll::GroupId,AccountRelation = VendGroup.VendGroupMany TaxesMatrix_BR records → zero or one VendGroup record
VendTable→VendTableJoin on
CustVendType = CustVendType_BR::Vendor,AccountCode = TableGroupAll::Table,AccountRelation = VendTable.AccountNumMany 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.
TaxesMatrixEntity· 11 fields from this table
Need help with TaxesMatrix_BR in a report, an integration or a migration? Talk to Dr Dynamics.