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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CFOPCodeWhether the CFOP match is a single CFOP, a CFOP group or all.Enum
TableGroupAll (enum)
NoNone
CFOPRelationCFOP code or CFOP group that the line applies to.String
CFOPRelation
NoCFOPGroup_BR.CFOPGroupCFOPTable_BR.CFOPIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FBReasonCodeForComplementPoints to the reason code used for complement.Int64
RefRecId
YesFBReasonCodeForRestitutionComplement_BR.RecIdNone
FBReasonCodeForRestitutionPoints to the reason code used for restitution.Int64
RefRecId
YesFBReasonCodeForRestitutionComplement_BR.RecIdNone
ItemCodeWhether the item match is a single item, an item group or all items.Enum
TableGroupAll (enum)
NoNone
ItemRelationItem or item group that the line applies to.String (20)
InventItemRelation
NoInventItemGroup.ItemGroupIdInventTable.ItemIdNone
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxationCodeTaxation code for the line.String (3)
TaxationCode_BR
YesNone
TaxReasonCodeForRestitutionComplementSetupHeading_BRPoints to the setup header that this line belongs to.Int64
RefRecId
YesTaxReasonCodeForRestitutionComplementSetupHeading_BR.RecIdNone

Indexes (2)

Relations (7)

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

  • TaxReasonCodeForRestitutionComplementSetupHeading_BR → TaxReasonCodeForRestitutionComplementSetupHeading_BR

    Join on TaxReasonCodeForRestitutionComplementSetupHeading_BR = TaxReasonCodeForRestitutionComplementSetupHeading_BR.RecId

    Many TaxReasonCodeForRestitutionComplementSetupData_BR records → exactly one TaxReasonCodeForRestitutionComplementSetupHeading_BR record

  • FBReasonCodeForRestitutionComplement_BR_Restitution → FBReasonCodeForRestitutionComplement_BR

    Join on FBReasonCodeForRestitution = FBReasonCodeForRestitutionComplement_BR.RecId

    Many TaxReasonCodeForRestitutionComplementSetupData_BR records → exactly one FBReasonCodeForRestitutionComplement_BR record

  • FBReasonCodeForRestitutionComplement_BR_Complement → FBReasonCodeForRestitutionComplement_BR

    Join on FBReasonCodeForComplement = FBReasonCodeForRestitutionComplement_BR.RecId

    Many TaxReasonCodeForRestitutionComplementSetupData_BR records → exactly one FBReasonCodeForRestitutionComplement_BR record

  • CFOPTable → CFOPTable_BR

    Join on CFOPCode = null, CFOPRelation = CFOPTable_BR.CFOPId

    Many TaxReasonCodeForRestitutionComplementSetupData_BR records → zero or one CFOPTable_BR record

  • CFOPGroup → CFOPGroup_BR

    Join on CFOPCode = 1, CFOPRelation = CFOPGroup_BR.CFOPGroup

    Many TaxReasonCodeForRestitutionComplementSetupData_BR records → zero or one CFOPGroup_BR record

  • InventItemGroup → InventItemGroup

    Join on ItemCode = 1, ItemRelation = InventItemGroup.ItemGroupId

    Many TaxReasonCodeForRestitutionComplementSetupData_BR records → zero or one InventItemGroup record

  • InventTable → InventTable

    Join on ItemCode = null, ItemRelation = InventTable.ItemId

    Many 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.

Email sales@drdynamics.co.uk