Table

ICMSSTRestitutionSetupData_BR

ICMS-ST restitution setup data

Setup lines for ICMS-ST restitution, used for Brazil. Each line belongs to a state-level fiscal books parameter record. It combines a CFOP code or group, a taxation code and a refund reason.

Table name
ICMSSTRestitutionSetupData_BR
Module
Cross-module and platform
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 (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CFOPCodeSays whether the CFOP entry is a single code, a group or all codes.Enum
TableGroupAll (enum)
NoNone
CFOPRelationThe CFOP code or CFOP group that the line applies to, depending on the CFOP code setting.String
CFOPRelation
NoCFOPGroup_BR.CFOPGroupCFOPTable_BR.CFOPIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FBParametersPerStatePoints to the fiscal books parameters per state record that this setup line belongs to.Int64
RefRecId
NoFBParametersPerState_BR.RecIdNone
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
RefundReasonCodeReason for the refund, chosen from a list such as sale to another state, loss, theft or export.Enum
RefundReasonCode_BR (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxationCodePoints to the taxation code record used for this line.Int64
RefRecId
NoTaxationCodeTable_BR.RecIdNone

Relations (4)

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

  • FBParametersPerState_BR → FBParametersPerState_BR

    Join on FBParametersPerState = FBParametersPerState_BR.RecId

    Many ICMSSTRestitutionSetupData_BR records → exactly one FBParametersPerState_BR record

  • CFOPTable → CFOPTable_BR

    Join on CFOPCode = TableGroupAll::Table, CFOPRelation = CFOPTable_BR.CFOPId

    Many ICMSSTRestitutionSetupData_BR records → zero or one CFOPTable_BR record

  • CFOPGroup → CFOPGroup_BR

    Join on CFOPRelation = CFOPGroup_BR.CFOPGroup, CFOPCode = TableGroupAll::GroupId

    Many ICMSSTRestitutionSetupData_BR records → zero or one CFOPGroup_BR record

  • TaxationCodeTable → TaxationCodeTable_BR

    Join on TaxationCode = TaxationCodeTable_BR.RecId

    Many ICMSSTRestitutionSetupData_BR records → zero or one TaxationCodeTable_BR record

Get this data out

No public entity reads from ICMSSTRestitutionSetupData_BR. Its data is only reachable through the application, a custom entity or a database export.

Need help with ICMSSTRestitutionSetupData_BR in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk