Table

FBParametersPerState_BR

Fiscal books parameters per state

Setup table used for Brazil that keeps fiscal books settings separately for each state. Each record is identified by country or region and state. Other fields in the table link to journal names, CFOP groups, adjustment codes and observation codes.

Table name
FBParametersPerState_BR
Module
Fiscal books brazil
Table group
Parameter
Table type
Regular
Data per company
No
Configuration key
None
Primary index
StateIdx
Replacement key
None
Key fields
CountryRegionId, StateId
Model
FiscalBooks

Fields (43)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CountryRegionIdCountry or region of the state. Part of the key and points to the state record.String
LogisticsAddressCountryRegionId
NoLogisticsAddressState.CountryRegionIdNone
StateIdState that the parameters apply to. Part of the key and points to the state record.String
LogisticsAddressStateId
NoLogisticsAddressState.StateIdFiscalBooksParametersPerStateEntity
Block1900Yes/No option to generate block 1900 and its child records.Enum
NoYesId
NoYes (enum)
NoNone
CAT66AdjustmentCodeIPITablePoints to the IPI adjustment code used for the IPI-related C197 record.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeIPI_BR.RecIdNone
CAT66AjustmentCodeBasePoints to the adjustment code for ICMS-ST tax base in record C197 of the GIA/SP report.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBFiscalDocumentAdjustmentCodeICMS_BR.RecIdNone
CAT66AjustmentCodeIPIPoints to the adjustment code for IPI in record C197 of the GIA/SP report.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBFiscalDocumentAdjustmentCodeICMS_BR.RecIdNone
CAT66AjustmentCodeValuePoints to the adjustment code for ICMS-ST tax in record C197 of the GIA/SP report.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBFiscalDocumentAdjustmentCodeICMS_BR.RecIdNone
CAT66CFOPGroupPoints to the CFOP group used to filter the CAT66 setup.Int64
RefRecId
NoFBCFOPGroupHeading_BR.RecIdNone
CAT66IPIValueIPI tax rate value used for the IPI-related C197 record.Real
TaxValue
NoNone
CAT66ObservationCodePoints to the observation code used for the CAT66 setup.Int64
FBObservationCodeRecId_BR
NoFBObservationCodeTable_BR.RecIdNone
CIAPCalculateInstallmentForOutgoingYes/No option to calculate the CIAP installment for outgoing transactions.Enum
NoYesId
NoYes (enum)
NoFiscalBooksParametersPerStateEntity
Consolidate1923ForOutgoingYes/No option to consolidate record 1923 by fiscal document for outgoing sales to final consumers.Enum
NoYesId
NoYes (enum)
NoNone
EnableC180C185Yes/no switch that turns on the C180 and C185 records for this state. These records cover the ICMS ST tax complement and restitution.Enum
NoYesId
NoYes (enum)
NoNone
EnableC181C186Yes/no switch that turns on the C181 and C186 records for this state. These records also cover the ICMS ST tax complement and restitution.Enum
NoYesId
NoYes (enum)
NoNone
EnableDocumentAdjustmentYes/No option to process document adjustments under Resolution 13/2019.Enum
NoYesId
NoYes (enum)
NoNone
FBSubTaxAssessment_BRSub tax assessment indicator, from Assessment 1 to Assessment 6.Enum
FBSubTaxAssessment_BR (enum)
NoNone
GenerateC176RecordYes/No option to generate record C176.Enum
NoYes (enum)
NoNone
GroupICMSDifPaymentByDocumentYes/No option to combine ICMS-DIF and FCP into one payment for each fiscal document.Enum
NoYes (enum)
NoNone
ICMSAdjustmentByFiscalDocumentYes/No option to handle ICMS adjustments by fiscal document.Enum
NoYesId
NoYes (enum)
NoFiscalBooksParametersPerStateEntity
ICMSFBObservationCodeTablePoints to the observation code used for ICMS.Int64
FBObservationCodeRecId_BR
NoFBObservationCodeTable_BR.RecIdFiscalBooksParametersPerStateEntity
ICMSFiscalDocumentAdjCodeFixedAssetPoints to the fiscal document adjustment code used for fixed assets.Int64
FBFiscalDocumentAdjustmentCodeRecId_BR
NoFBFiscalDocumentAdjustmentCodeICMS_BR.RecIdFiscalBooksParametersPerStateEntity
ICMSFiscalDocumentAdjustmentCodePoints to the fiscal document adjustment code used for item consumption.Int64
FBFiscalDocumentAdjustmentCodeRecId_BR
NoFBFiscalDocumentAdjustmentCodeICMS_BR.RecIdFiscalBooksParametersPerStateEntity
ICMSGeneralAdjustmentCodePoints to the general adjustment code used for item consumption.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCode_BR.RecIdFiscalBooksParametersPerStateEntity
ICMSGeneralAdjustmentCodeComplementPoints to the record 1921 adjustment code for the complement (reverse) amount.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdNone
ICMSGeneralAdjustmentCodeComplementE220Points to the record E220 adjustment code for the complement amount.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdNone
ICMSGeneralAdjustmentCodeCreditInventoryPoints to the record 1921 adjustment code for credit on inventory subject to ICMS-ST.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdNone
ICMSGeneralAdjustmentCodeCreditReversalPoints to the record 1921 adjustment code for credit reversal on outgoing documents to non-final consumers, or exempt or non-taxable ones.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdNone
ICMSGeneralAdjustmentCodeFixedAssetPoints to the ICMS general adjustment code used for fixed assets.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdFiscalBooksParametersPerStateEntity
ICMSGeneralAdjustmentCodeRestitutionPoints to the record 1921 adjustment code for the restitution (reverse) amount.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdNone
ICMSGeneralAdjustmentCodeRestitutionE111Points to the record E111 adjustment code for the restitution amount.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdNone
ICMSGeneralAdjustmentCodeTaxableIncomingPoints to the record 1921 adjustment code for credit on incoming documents subject to ICMS-ST.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdNone
ICMSGeneralAdjustmentCodeTaxableOutgoingPoints to the record 1921 adjustment code for debit on outgoing documents to final consumers subject to ICMS-ST.Int64
FBGeneralAdjustmentCodeRecId_BR
NoFBGeneralAdjustmentCodeICMS_BR.RecIdNone
IsRetailCompanyYes/No option to use the retail company method for presumed credit.Enum
NoYesId
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PresumedCreditYes/No option to turn on the ICMS presumed credit function.Enum
NoYes (enum)
NoNone
PresumedTaxAlgorithmMethod for presumed tax: last purchase or average.Enum
PresumedTaxAlgorithm_BR (enum)
NoNone
PresumedTaxAlgorithmSPEDMethod used to recalculate presumed tax for SPED: last purchase or average.Enum
PresumedTaxAlgorithm_BR (enum)
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
SubTaxAssesmentLedgerJournalNameIdPoints to the journal name for restitution or complement adjustments in the general ledger.String
LedgerJournalNameId
NoLedgerJournalName.JournalNameNone
SubTaxAssessmentDescriptionExtra description of the sub tax assessment, reported in record 1900.String (60)
Description
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAdjustmentJournalNamePoints to the journal name used for adjustments.String
LedgerJournalNameId
NoLedgerJournalName.JournalNameNone

Indexes (1)

Relations (24)

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

  • FBFiscalDocumentAdjustmentCodeICMS_BR → FBFiscalDocumentAdjustmentCodeICMS_BR

    Join on ICMSFiscalDocumentAdjustmentCode = FBFiscalDocumentAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBFiscalDocumentAdjustmentCodeICMS_BR record

  • FBGeneralAdjustmentCode_BR → FBGeneralAdjustmentCode_BR

    Join on ICMSGeneralAdjustmentCode = FBGeneralAdjustmentCode_BR.RecId

    Many FBParametersPerState_BR records → exactly one FBGeneralAdjustmentCode_BR record

  • FBObservationCodeTable_BR → FBObservationCodeTable_BR

    Join on ICMSFBObservationCodeTable = FBObservationCodeTable_BR.RecId

    Many FBParametersPerState_BR records → exactly one FBObservationCodeTable_BR record

  • ICMSFiscalDocumentAdjCodeFixedAsset → FBFiscalDocumentAdjustmentCodeICMS_BR

    Join on ICMSFiscalDocumentAdjCodeFixedAsset = FBFiscalDocumentAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBFiscalDocumentAdjustmentCodeICMS_BR record

  • ICMSGeneralAdjustmentCodeFixedAsset → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeFixedAsset = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • LogisticsAddressState → LogisticsAddressState

    Join on StateId = LogisticsAddressState.StateId, CountryRegionId = LogisticsAddressState.CountryRegionId

    Zero or one FBParametersPerState_BR record → zero or one LogisticsAddressState record

  • ICMSGeneralAdjustmentCodeTaxableOutgoing → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeTaxableOutgoing = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • ICMSGeneralAdjustmentCodeTaxableIncoming → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeTaxableIncoming = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • ICMSGeneralAdjustmentCodeCreditReversal → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeCreditReversal = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • ICMSGeneralAdjustmentCodeCreditInventory → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeCreditInventory = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • ICMSGeneralAdjustmentCodeComplement → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeComplement = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • ICMSGeneralAdjustmentCodeRestitution → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeRestitution = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • ICMSGeneralAdjustmentCodeComplementE220 → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeComplementE220 = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • ICMSGeneralAdjustmentCodeRestitutionE111 → FBGeneralAdjustmentCodeICMS_BR

    Join on ICMSGeneralAdjustmentCodeRestitutionE111 = FBGeneralAdjustmentCodeICMS_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBGeneralAdjustmentCodeICMS_BR record

  • CAT66AjustmentCodeIPI → FBFiscalDocumentAdjustmentCodeICMS_BR

    Join on CAT66AjustmentCodeIPI = FBFiscalDocumentAdjustmentCodeICMS_BR.RecId, FBFiscalDocumentAdjustmentCodeICMS_BR.TaxType = TaxType_BR::ICMSST

    Exactly one FBParametersPerState_BR record → zero or one FBFiscalDocumentAdjustmentCodeICMS_BR record

  • CAT66AjustmentCodeBaseIncoming → FBFiscalDocumentAdjustmentCodeICMS_BR

    Join on CAT66AjustmentCodeBase = FBFiscalDocumentAdjustmentCodeICMS_BR.RecId, FBFiscalDocumentAdjustmentCodeICMS_BR.TaxType = TaxType_BR::ICMSST

    Many FBParametersPerState_BR records → zero or one FBFiscalDocumentAdjustmentCodeICMS_BR record

  • CAT66AjustmentCodeValueIncoming → FBFiscalDocumentAdjustmentCodeICMS_BR

    Join on CAT66AjustmentCodeValue = FBFiscalDocumentAdjustmentCodeICMS_BR.RecId, FBFiscalDocumentAdjustmentCodeICMS_BR.TaxType = TaxType_BR::ICMSST

    Many FBParametersPerState_BR records → zero or one FBFiscalDocumentAdjustmentCodeICMS_BR record

  • CAT66AjustmentCodeBaseOutgoing → FBFiscalDocumentAdjustmentCodeICMS_BR

    Join on FBFiscalDocumentAdjustmentCodeICMS_BR.TaxType = TaxType_BR::ICMSST

    Many FBParametersPerState_BR records → zero or one FBFiscalDocumentAdjustmentCodeICMS_BR record

  • CAT66AjustmentCodeValueOutgoing → FBFiscalDocumentAdjustmentCodeICMS_BR

    Join on FBFiscalDocumentAdjustmentCodeICMS_BR.TaxType = TaxType_BR::ICMSST

    Many FBParametersPerState_BR records → zero or one FBFiscalDocumentAdjustmentCodeICMS_BR record

  • CAT66ObservationCode → FBObservationCodeTable_BR

    Join on CAT66ObservationCode = FBObservationCodeTable_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBObservationCodeTable_BR record

  • FBCFOPGroupHeading_BR → FBCFOPGroupHeading_BR

    Join on CAT66CFOPGroup = FBCFOPGroupHeading_BR.RecId

    Many FBParametersPerState_BR records → zero or one FBCFOPGroupHeading_BR record

  • CAT66AjustmentCodeIPITable → FBGeneralAdjustmentCodeIPI_BR

    Join on CAT66AdjustmentCodeIPITable = FBGeneralAdjustmentCodeIPI_BR.RecId

    Cardinality not set in the metadata.

  • SubTaxAssesmentLedgerJournalNameId → LedgerJournalName

    Join on SubTaxAssesmentLedgerJournalNameId = LedgerJournalName.JournalName, LedgerJournalName.JournalType = LedgerJournalType::FBTaxAssessmentAdjustments_BR

    Many FBParametersPerState_BR records → zero or one LedgerJournalName record

  • LedgerJournalName → LedgerJournalName

    Join on TaxAdjustmentJournalName = LedgerJournalName.JournalName, LedgerJournalName.JournalType = LedgerJournalType::FBTaxAssessmentAdjustments_BR

    Many FBParametersPerState_BR records → exactly one LedgerJournalName record

Get this data out

Tables are not exposed directly. These public entities read from FBParametersPerState_BR; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk