Table
TaxReasonCodeForRestitutionComplementSetupData_BR
Reason code for restitution/complement setup data
Holds the lines of a setup that assigns reason codes for restitution and complement, used for Brazil. Each line links to a setup header. It matches items and CFOP codes, each as a single record, a group or all, and gives a taxation code and the two reason codes.
- Table name
TaxReasonCodeForRestitutionComplementSetupData_BR- Module
Tax- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CFOPCodeWhether the CFOP match is a single CFOP, a CFOP group or all. | EnumTableGroupAll (enum) | No | None | |
CFOPRelationCFOP code or CFOP group that the line applies to. | StringCFOPRelation | No | CFOPGroup_BR.CFOPGroupCFOPTable_BR.CFOPId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FBReasonCodeForComplementPoints to the reason code used for complement. | Int64RefRecId | Yes | FBReasonCodeForRestitutionComplement_BR.RecId | None |
FBReasonCodeForRestitutionPoints to the reason code used for restitution. | Int64RefRecId | Yes | FBReasonCodeForRestitutionComplement_BR.RecId | None |
ItemCodeWhether the item match is a single item, an item group or all items. | EnumTableGroupAll (enum) | No | None | |
ItemRelationItem 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxationCodeTaxation code for the line. | String (3)TaxationCode_BR | Yes | None | |
TaxReasonCodeForRestitutionComplementSetupHeading_BRPoints to the setup header that this line belongs to. | Int64RefRecId | Yes | TaxReasonCodeForRestitutionComplementSetupHeading_BR.RecId | None |
Indexes (2)
TaxReasonCodeForRestitutionComplementSetupHeadingIdxTaxReasonCodeForRestitutionComplementSetupHeading_BRNot unique.
TaxReasonCodeForRestitutionComplementSetupDataIdxTaxReasonCodeForRestitutionComplementSetupHeading_BR,ItemRelation,ItemCode,CFOPRelation,CFOPCode,TaxationCodeUnique.
Relations (7)
Each relation joins TaxReasonCodeForRestitutionComplementSetupData_BR to another table on the fields shown.
TaxReasonCodeForRestitutionComplementSetupHeading_BR→TaxReasonCodeForRestitutionComplementSetupHeading_BRJoin on
TaxReasonCodeForRestitutionComplementSetupHeading_BR = TaxReasonCodeForRestitutionComplementSetupHeading_BR.RecIdMany TaxReasonCodeForRestitutionComplementSetupData_BR records → exactly one TaxReasonCodeForRestitutionComplementSetupHeading_BR record
FBReasonCodeForRestitutionComplement_BR_Restitution→FBReasonCodeForRestitutionComplement_BRJoin on
FBReasonCodeForRestitution = FBReasonCodeForRestitutionComplement_BR.RecIdMany TaxReasonCodeForRestitutionComplementSetupData_BR records → exactly one FBReasonCodeForRestitutionComplement_BR record
FBReasonCodeForRestitutionComplement_BR_Complement→FBReasonCodeForRestitutionComplement_BRJoin on
FBReasonCodeForComplement = FBReasonCodeForRestitutionComplement_BR.RecIdMany TaxReasonCodeForRestitutionComplementSetupData_BR records → exactly one FBReasonCodeForRestitutionComplement_BR record
CFOPTable→CFOPTable_BRJoin on
CFOPCode = null,CFOPRelation = CFOPTable_BR.CFOPIdMany TaxReasonCodeForRestitutionComplementSetupData_BR records → zero or one CFOPTable_BR record
CFOPGroup→CFOPGroup_BRJoin on
CFOPCode = 1,CFOPRelation = CFOPGroup_BR.CFOPGroupMany TaxReasonCodeForRestitutionComplementSetupData_BR records → zero or one CFOPGroup_BR record
InventItemGroup→InventItemGroupJoin on
ItemCode = 1,ItemRelation = InventItemGroup.ItemGroupIdMany TaxReasonCodeForRestitutionComplementSetupData_BR records → zero or one InventItemGroup record
InventTable→InventTableJoin on
ItemCode = null,ItemRelation = InventTable.ItemIdMany TaxReasonCodeForRestitutionComplementSetupData_BR records → zero or one InventTable record
Get this data out
No public entity reads from TaxReasonCodeForRestitutionComplementSetupData_BR. Its data is only reachable through the application, a custom entity or a database export.
Need help with TaxReasonCodeForRestitutionComplementSetupData_BR in a report, an integration or a migration? Talk to Dr Dynamics.