Table
TaxBenefitCodeSetupData_BR
Benefit code setup data
Holds detail lines for benefit code setup used for Brazil. Each line can be set for a customer, vendor or fiscal establishment, and for an item and a CFOP code. It links to adjustment codes and observation codes.
- Table name
TaxBenefitCodeSetupData_BR- Module
Tax- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountCodeShows if the account relation is a single account, a group or all. | EnumTableGroupAll (enum) | No | None | |
AccountRelationThe customer, group or fiscal establishment group that the line applies to. | String (20)InventCustVendRel | No | CustGroup.CustGroupCustTable.AccountNumFiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdFiscalEstablishment_BR.FiscalEstablishmentIdVendGroup.VendGroupVendTable.AccountNum | None |
CFOPCodeShows if the CFOP relation is a single CFOP, a group or all. | EnumTableGroupAll (enum) | No | None | |
CFOPRelationThe CFOP code or CFOP group that the line applies to. | StringCFOPRelation | No | CFOPGroup_BR.CFOPGroupCFOPTable_BR.CFOPId | None |
CustVendTypeType of party: customer, vendor or fiscal establishment. | EnumCustVendType_BR (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FBFiscalDocumentAdjustmentCodeICMS_53Adjustment code 5.3, pointing to a fiscal document adjustment code record. | Int64FBFiscalDocumentAdjustmentCodeICMS_53 | No | FBFiscalDocumentAdjustmentCodeICMS_BR.RecId | None |
FBFiscalDocumentAdjustmentCodeICMS_BRThe fiscal document adjustment code (ICMS) linked to the line. | Int64RefRecId | No | FBFiscalDocumentAdjustmentCodeICMS_BR.RecId | None |
FBObservationCodeTable_BRThe observation code linked to the line. | Int64FBObservationCodeRecId_BR | No | FBObservationCodeTable_BR.RecId | None |
ItemCodeShows if the item relation is a single item, a group or all. | EnumTableGroupAll (enum) | No | None | |
ItemRelationThe item or item group that the line applies to. | String (20)InventItemRelation | No | InventItemGroup.ItemGroupIdInventTable.ItemId | None |
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 | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxBenefitCodeSetupHeading_BRThe benefit code setup (FCP setup) heading this line belongs to. | Int64RefRecId | No | TaxBenefitCodeSetupHeading_BR.RecId | None |
Indexes (1)
TaxBenefitCodeSetupDataIdxTaxBenefitCodeSetupHeading_BR,CustVendType,AccountRelation,ItemRelation,ItemCode,CFOPRelation,CFOPCodeUnique.
Relations (14)
Each relation joins TaxBenefitCodeSetupData_BR to another table on the fields shown.
CustGroup→CustGroupJoin on
CustVendType = null,AccountCode = 1,AccountRelation = CustGroup.CustGroupMany TaxBenefitCodeSetupData_BR records → zero or one CustGroup record
CustTable→CustTableJoin on
CustVendType = null,AccountCode = null,AccountRelation = CustTable.AccountNumMany TaxBenefitCodeSetupData_BR records → zero or one CustTable record
FiscalEstablishmentGroup→FiscalEstablishmentGroup_BRJoin on
CustVendType = 2,AccountCode = 1,AccountRelation = FiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdMany TaxBenefitCodeSetupData_BR records → zero or one FiscalEstablishmentGroup_BR record
FiscalEstablishmentTable→FiscalEstablishment_BRJoin on
CustVendType = 2,AccountCode = null,AccountRelation = FiscalEstablishment_BR.FiscalEstablishmentIdMany TaxBenefitCodeSetupData_BR records → zero or one FiscalEstablishment_BR record
InventItemGroup→InventItemGroupJoin on
ItemCode = 1,ItemRelation = InventItemGroup.ItemGroupIdMany TaxBenefitCodeSetupData_BR records → zero or one InventItemGroup record
InventTable→InventTableJoin on
ItemCode = null,ItemRelation = InventTable.ItemIdMany TaxBenefitCodeSetupData_BR records → zero or one InventTable record
TaxBenefitCodeSetupHeading_BR→TaxBenefitCodeSetupHeading_BRJoin on
TaxBenefitCodeSetupHeading_BR = TaxBenefitCodeSetupHeading_BR.RecIdMany TaxBenefitCodeSetupData_BR records → exactly one TaxBenefitCodeSetupHeading_BR record
VendGroup→VendGroupJoin on
CustVendType = 1,AccountCode = 1,AccountRelation = VendGroup.VendGroupMany TaxBenefitCodeSetupData_BR records → zero or one VendGroup record
VendTable→VendTableJoin on
CustVendType = 1,AccountCode = null,AccountRelation = VendTable.AccountNumMany TaxBenefitCodeSetupData_BR records → zero or one VendTable record
FBFiscalDocumentAdjustmentCodeICMS_BR→FBFiscalDocumentAdjustmentCodeICMS_BRJoin on
FBFiscalDocumentAdjustmentCodeICMS_BR = FBFiscalDocumentAdjustmentCodeICMS_BR.RecId,FBFiscalDocumentAdjustmentCodeICMS_BR.Table52 = NoYes::YesZero or one TaxBenefitCodeSetupData_BR record → exactly one FBFiscalDocumentAdjustmentCodeICMS_BR record
CFOPTable→CFOPTable_BRJoin on
CFOPCode = null,CFOPRelation = CFOPTable_BR.CFOPIdMany TaxBenefitCodeSetupData_BR records → zero or one CFOPTable_BR record
CFOPGroup→CFOPGroup_BRJoin on
CFOPCode = 1,CFOPRelation = CFOPGroup_BR.CFOPGroupMany TaxBenefitCodeSetupData_BR records → zero or one CFOPGroup_BR record
FBFiscalDocumentAdjustmentCodeICMS_53→FBFiscalDocumentAdjustmentCodeICMS_BRJoin on
FBFiscalDocumentAdjustmentCodeICMS_53 = FBFiscalDocumentAdjustmentCodeICMS_BR.RecId,FBFiscalDocumentAdjustmentCodeICMS_BR.Table52 = nullMany TaxBenefitCodeSetupData_BR records → zero or one FBFiscalDocumentAdjustmentCodeICMS_BR record
FBObservationCodeTable_BR→FBObservationCodeTable_BRJoin on
FBObservationCodeTable_BR = FBObservationCodeTable_BR.RecIdZero or one TaxBenefitCodeSetupData_BR record → zero or one FBObservationCodeTable_BR record
Get this data out
No public entity reads from TaxBenefitCodeSetupData_BR. Its data is only reachable through the application, a custom entity or a database export.
Need help with TaxBenefitCodeSetupData_BR in a report, an integration or a migration? Talk to Dr Dynamics.