Data entity
TaxesMatrixEntity
Holds the taxes matrix used for Brazil. Each record links a fiscal establishment group and a CFOP group to a type, an account relation and an item relation. It also refers to a sales tax group and an item sales tax group.
- Entity name
TaxesMatrixEntity- Public entity name
TaxesMatrix- OData collection
TaxesMatrices- Category
Not set- Module
Tax- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
FiscalEstablishmentGroupId, CFOPGroupId, Type, AccountRelation, ItemRelation- Staging table
TaxesMatrixStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/TaxesMatrices- Dataverse virtual table
mserp_taxesmatrixentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
TaxesMatrix_BR· rootCFOPGroup(tableCFOPGroup_BR) · OuterJoin toTaxesMatrix_BR· read-onlyFiscalEstablishmentGroup_BR· InnerJoin toTaxesMatrix_BR· read-onlyTaxItemGroupHeading· OuterJoin toTaxesMatrix_BR· read-only
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountCodeShows whether the account relation is a single account, a group or all accounts. | Enum
| No | Yes | TaxesMatrix_BR.AccountCode | |
AccountRelationThe customer, customer group or fiscal establishment group that the row applies to. | String (20)InventCustVendRel | No | Yes | CustGroup.CustGroupCustTable.AccountNumFiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdFiscalEstablishment_BR.FiscalEstablishmentIdVendGroup.VendGroupVendTable.AccountNum | TaxesMatrix_BR.AccountRelation |
CFOPGroupRecIdPoints to the CFOP group that the row applies to. | Int64RefRecId | No | No (private) | CFOPGroup_BR.RecId | TaxesMatrix_BR.CFOPGroup_BR |
TypeSays whether the row is for customers, vendors or fiscal establishments. | Enum
| No | Yes | TaxesMatrix_BR.CustVendType | |
FiscalEstablishmentGroupRecIdPoints to the fiscal establishment group that the row applies to. | Int64FiscalEstablishmentGroupRecId_BR | Yes | No (private) | FiscalEstablishmentGroup_BR.RecId | TaxesMatrix_BR.FiscalEstablishmentGroup_BR |
IsUsedForFreeTextInvoiceYes/no flag for free text invoices. | EnumFreeTextInvoice_BR
| No | Yes | TaxesMatrix_BR.FreeTextInvoice | |
ItemCodeShows whether the item relation is a single item, an item group or all items. | Enum
| No | Yes | TaxesMatrix_BR.ItemCode | |
ItemRelationThe item or item group that the row applies to. | String (20)InventItemRelation | No | Yes | InventItemGroup.ItemGroupIdInventTable.ItemId | TaxesMatrix_BR.ItemRelation |
IsUsedForServiceItemsYes/no flag for service items. | Enum
| No | Yes | TaxesMatrix_BR.ServiceItems | |
SalesTaxGroupThe sales tax group linked to this matrix row. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | TaxesMatrix_BR.TaxGroup |
ItemSalesTaxGroupThe item sales tax group linked to this matrix row. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | TaxesMatrix_BR.TaxItemGroup |
CFOPGroupIdCode of the CFOP group. | StringCFOPGroupId_BR | No | Yes | CFOPGroup_BR.CFOPGroup | |
FiscalEstablishmentGroupIdUnique ID of the fiscal establishment group. | StringFiscalEstablishmentGroupId_BR | Yes | Yes | FiscalEstablishmentGroup_BR.FiscalEstablishmentGroupId |
Foreign keys (12)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
AccountRelation→CustGroup.CustGroup(key of CustGroup)Relation also requires CustVendType = CustVendType_BR::Customer, AccountCode = TableGroupAll::GroupId.
Many TaxesMatrix_BR records → zero or one CustGroup record
CustGroup details: see CustCustomerGroupEntity, RetailPriceGroupApplicabilityRuleEntity, WHSCustomerGroupProductFilterEntity
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires CustVendType = CustVendType_BR::Customer, AccountCode = TableGroupAll::Table.
Many TaxesMatrix_BR records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
AccountRelation→FiscalEstablishmentGroup_BR.FiscalEstablishmentGroupId(key of FiscalEstablishmentGroup_BR)Relation also requires CustVendType = CustVendType_BR::FiscalEstablishment, AccountCode = TableGroupAll::GroupId.
Many TaxesMatrix_BR records → zero or one FiscalEstablishmentGroup_BR record
FiscalEstablishmentGroup_BR details: see FiscalEstablishmentGroupEntity, FiscalEstablishmentEntity
AccountRelation→FiscalEstablishment_BR.FiscalEstablishmentId(key of FiscalEstablishment_BR)Relation also requires CustVendType = CustVendType_BR::FiscalEstablishment, AccountCode = TableGroupAll::Table.
Many TaxesMatrix_BR records → zero or one FiscalEstablishment_BR record
FiscalEstablishment_BR details: see FiscalEstablishmentEntity, FiscalOrganizationFiscalEstablishmentEntity, AssetFixedAssetEntity
AccountRelation→VendGroup.VendGroup(key of VendGroup)Relation also requires CustVendType = CustVendType_BR::Vendor, AccountCode = TableGroupAll::GroupId.
Many TaxesMatrix_BR records → zero or one VendGroup record
VendGroup details: see VendVendorGroupEntity, WHSVendorGroupProductFilterEntity, DimAttributeVendGroupEntity
AccountRelation→VendTable.AccountNum(key of VendTable)Relation also requires CustVendType = CustVendType_BR::Vendor, AccountCode = TableGroupAll::Table.
Many TaxesMatrix_BR records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
CFOPGroupRecId→CFOPGroup_BR.RecId(key of CFOPGroup_BR)Many TaxesMatrix_BR records → zero or one CFOPGroup_BR record
CFOPGroup_BR details: see CFOPGroupEntity, CFOPMatrixEntity
FiscalEstablishmentGroupRecId→FiscalEstablishmentGroup_BR.RecId(key of FiscalEstablishmentGroup_BR)One or more TaxesMatrix_BR records → exactly one FiscalEstablishmentGroup_BR record
FiscalEstablishmentGroup_BR details: see FiscalEstablishmentGroupEntity, FiscalEstablishmentEntity
ItemRelation→InventItemGroup.ItemGroupId(key of InventItemGroup)Relation also requires ItemCode = TableGroupAll::GroupId.
Many TaxesMatrix_BR records → zero or one InventItemGroup record
InventItemGroup details: see InventProductGroupEntity, RAssetInventIssueQuotasEntity, InventItemGroupBiEntity
ItemRelation→InventTable.ItemId(key of InventTable)Relation also requires ItemCode = TableGroupAll::Table.
Many TaxesMatrix_BR records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
SalesTaxGroup→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many TaxesMatrix_BR records → exactly one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
ItemSalesTaxGroup→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many TaxesMatrix_BR records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
Need help with TaxesMatrixEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.