Table
FiscalEstablishment_BR
Fiscal establishment
Holds one fiscal establishment used for Brazil. Each record is identified by the fiscal establishment ID. It stores tax registration numbers, the setup for electronic fiscal documents (NF-e, NFC-e and NFS-e), and the technical responsible contact. It links to a fiscal organization, an optional group, an accountant, an address and e-mail templates.
- Table name
FiscalEstablishment_BR- Module
Fiscal books brazil- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
FiscalEstablishmentIdIdx- Key fields
FiscalEstablishmentId- Model
FiscalBooks
Fields (56)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
FiscalEstablishmentIdUnique ID of the fiscal establishment. It is the business key of the table. | StringFiscalEstablishmentId_BR | Yes | FiscalEstablishmentEntityFiscalEstablishmentEntityFiscalOrganizationFiscalEstablishmentEntityand 13 more | |
Accountant_BRPoints to the accountant record linked to this establishment. | Int64AccountantRecId_BR | No | Accountant_BR.RecId | FiscalEstablishmentEntity |
CCMNum_BRMunicipal taxpayer registration number (CCM) of the establishment. | String (20)CCMNum_BR | No | FiscalEstablishmentEntity | |
CNPJCPFNum_BRCNPJ number, the Brazilian company tax ID, of the establishment. | String (20)CNPJCPFNum_BR | No | FiscalEstablishmentEntity | |
ConsumerEFDocAuthorityCode of the authority that receives consumer electronic documents (NFC-e). | StringEFDocAuthorityId_BR | No | EFDocAuthority_BR.AuthorityId | FiscalEstablishmentEntity |
ConsumerEFDocCscCSC code, a security code used for NFC-e, stored as long text. | String (-1)ConsumerEFDocCsc | No | FiscalEstablishmentEntity | |
ConsumerEFDocCscTokenShort token that goes with the CSC code for NFC-e. | String (6)ConsumerEFDocCscToken | No | FiscalEstablishmentEntity | |
ConsumerEFDocEmailApprovedE-mail template ID used when an NFC-e is approved. | StringSysEmailId | No | SysEmailTable.EmailId | FiscalEstablishmentEntity |
ConsumerEFDocEnvironmentEnvironment for NFC-e: testing, production or blank. | EnumEFDocEnvironment_BR (enum) | No | FiscalEstablishmentEntity | |
ConsumerEFDocSendPdfInEmailYes or no choice for attaching the DANFE NFC-e as a PDF to the e-mail. | EnumNoYes (enum) | No | FiscalEstablishmentEntity | |
ConsumerEFDocVersionVersion of the NFC-e feature in use: 2.0, 3.1 or 4.0. | EnumEFiscalDocVersion_BR (enum) | No | FiscalEstablishmentEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | FiscalOrganizationFiscalEstablishmentEntity | |
DirPartyLocationPoints to the party location record that gives the establishment's address. | Int64DirPartyLocationRecId | Yes | DirPartyLocation.RecId | FiscalEstablishmentEntity |
EFDocAuthorityCode of the NF-e authority that the establishment sends electronic documents to. | StringEFDocAuthorityId_BR | No | EFDocAuthority_BR.AuthorityId | FiscalEstablishmentEntity |
EFDocAutomaticPrintingYes or no choice for printing the DANFE automatically once an NF-e is approved. | EnumEFDocAutomaticPrinting_BRboolean (enum) | No | FiscalEstablishmentEntity | |
EFDocBlockPostingNotValidatedXmlYes or no choice: only allow posting of NF-e documents that have a valid access key. | EnumNoYes (enum) | No | FiscalEstablishmentEntity | |
EFDocDigitalCertificateSubjectSubject text of the digital certificate used to sign electronic fiscal documents. | String (960)DigitalCertificateSubject | No | FiscalEstablishmentEntity | |
EFDocEmailApprovedE-mail template ID used when an NF-e is approved. | StringSysEmailId | No | SysEmailTable.EmailId | FiscalEstablishmentEntity |
EFDocEmailCanceledE-mail template ID used when an NF-e is cancelled. | StringSysEmailId | No | SysEmailTable.EmailId | FiscalEstablishmentEntity |
EFDocEmailEventE-mail template ID used for the correction letter event. | StringSysEmailId | No | SysEmailTable.EmailId | FiscalEstablishmentEntity |
EFDocEnvironmentEnvironment for NF-e: testing, production or blank. | EnumEFDocEnvironment_BR (enum) | No | FiscalEstablishmentEntity | |
EFDocKeyVaultCertificateRefPoints to the certificate record stored in the key vault. | Int64KeyVaultCertificateRef | No | KeyVaultCertificateTable.RecId | None |
EFDocMatchNfeXmlOnPostingYes or no choice to stop NF-e posting when the XML does not match. | EnumNoYes (enum) | No | FiscalEstablishmentEntity | |
EFDocNFe402018005v110Yes or no switch for turning on the latest NF-e technical note. | EnumNoYes (enum) | No | FiscalEstablishmentEntity | |
EFDocNFeTechNotesSelected NF-e technical note, by year, number and version. | EnumEFDocNFeTechNotes_BR (enum) | No | FiscalEstablishmentEntity | |
EFDocPrePrintedSecurityFormYes or no choice showing whether a pre-printed security form is used. | EnumNoYes (enum) | No | FiscalEstablishmentEntity | |
EFDocSendPdfInEmailYes or no choice for attaching the DANFE as a PDF to the e-mail. | EnumNoYes (enum) | No | FiscalEstablishmentEntity | |
EFDocValidateSchemaOnPostingChoice to check the XML schema of the NF-e when the document is posted. | EnumEFDocValidateSchemaOnPosting_BRboolean (enum) | No | FiscalEstablishmentEntity | |
EFDocVersionVersion of the NF-e feature in use: 2.0, 3.1 or 4.0. | EnumEFiscalDocVersion_BR (enum) | No | FiscalEstablishmentEntity | |
FciToIntrastateEnabledYes or no choice for applying FCI to operations inside the same state. | EnumNoYes (enum) | No | FiscalEstablishmentEntity | |
FiscalEstablishmentGroup_BRPoints to the fiscal establishment group this establishment is in. | Int64FiscalEstablishmentGroupRecId_BR | Yes | FiscalEstablishmentGroup_BR.RecId | FiscalEstablishmentEntity |
FiscalEstablishmentSalesIssuerPoints to another fiscal establishment that issues sales documents for this one. | Int64RefRecId | No | FiscalEstablishment_BR.RecId | FiscalEstablishmentEntity |
FiscalOrganization_BRPoints to the fiscal organization that this establishment belongs to. | Int64FiscalOrganizationRecId_BR | No | FiscalOrganization_BR.RecId | FiscalEstablishmentEntityFiscalOrganizationFiscalEstablishmentEntity |
IENum_BRState registration number (IE) of the establishment. | String (20)IENum_BR | No | FiscalEstablishmentEntity | |
IsClosedWarehouseYes or no flag marking the establishment as a closed warehouse. | EnumNoYesIdNoYes (enum) | No | FiscalEstablishmentEntity | |
NameName of the fiscal establishment. | String (60)FiscalEstablishmentName_BR | No | FiscalEstablishmentEntityDimAttributeFiscalEstablishment_BREntity | |
NextFiscalPrinterDailyReportNumberNext number to use for the daily operation report of the fiscal printer (ECF). | IntegerPositiveNumber | No | FiscalEstablishmentEntity | |
NFSeApproxTaxValueCity_BRApproximate city tax rate as a percentage, used for NFS-e. | RealApproximateTaxValue_BR | No | None | |
NFSeApproxTaxValueFederal_BRApproximate federal tax rate as a percentage, used for NFS-e. | RealApproximateTaxValue_BR | No | None | |
NFSeApproxTaxValueState_BRApproximate state tax rate as a percentage, used for NFS-e. | RealApproximateTaxValue_BR | No | None | |
NFSeEnvironment_BREnvironment for NFS-e, the service invoice: testing or production. | EnumNFSeEnvironment_BR (enum) | No | None | |
NIRENIRE number, the company registration number at the trade board. | String (11)NIRE_BR | No | FiscalEstablishmentEntity | |
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 | |
SPEDContribReportingTypeReporting type for NF-e and ECF in SPED contributions: detailed or consolidated. | EnumSPEDContribReportingType_BR (enum) | No | FiscalEstablishmentEntity | |
SPEDContribReportingTypeNFCeReporting type for NFC-e: detailed or consolidated. | EnumSPEDContribReportingType_BR (enum) | No | None | |
SPEDContribReportingTypeNFeReporting type for NF-e and ECF fiscal receipts: detailed or consolidated. | EnumSPEDContribReportingType_BR (enum) | 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 | |
TechnicalResponsibleCNPJCNPJ of the company that acts as technical responsible. | String (14)TechResponsibleCNPJ_BR | No | EFDocTechResponsibleInformationEntity | |
TechnicalResponsibleContactNameName of the contact person at the technical responsible. | String (60)TechResponsibleContactName_BR | No | EFDocTechResponsibleInformationEntity | |
TechnicalResponsibleCSRTCSRT code of the technical responsible, stored as a container. | ContainerTechResponsibleCSRTContainer_BR | No | None | |
TechnicalResponsibleEmailE-mail address of the technical responsible. | String (60)TechResponsibleEmail_BR | No | EFDocTechResponsibleInformationEntity | |
TechnicalResponsibleIdCSRTTwo-character CSRT identifier of the technical responsible. | String (2)TechResponsibleIdCSRT_BR | No | EFDocTechResponsibleInformationEntity | |
TechnicalResponsiblePhonePhone number of the technical responsible. | String (14)TechResponsiblePhone_BR | No | EFDocTechResponsibleInformationEntity |
Indexes (4)
FiscalEstablishmentIdIdxReplacement keyUnique, alternate key.
FiscalEstablishmentGroup_BRIdxNot unique.
DirPartyLocationIdxUnique.
FiscalEstablishmentSalesIssuerIdxFiscalEstablishmentSalesIssuerNot unique.
Relations (14)
Each relation joins FiscalEstablishment_BR to another table on the fields shown.
Accountant→Accountant_BRJoin on
Accountant_BR = Accountant_BR.RecIdZero or one FiscalEstablishment_BR record → zero or one Accountant_BR record
DirPartyLocation→DirPartyLocationJoin on
DirPartyLocation = DirPartyLocation.RecIdExactly one FiscalEstablishment_BR record → exactly one DirPartyLocation record
EFDocApprovedEmailTemplate→SysEmailTableJoin on
EFDocEmailApproved = SysEmailTable.EmailIdMany FiscalEstablishment_BR records → zero or one SysEmailTable record
EFDocCanceledEmailTemplate→SysEmailTableJoin on
EFDocEmailCanceled = SysEmailTable.EmailIdMany FiscalEstablishment_BR records → zero or one SysEmailTable record
EFDocEventEmailTemplate→SysEmailTableJoin on
EFDocEmailEvent = SysEmailTable.EmailIdMany FiscalEstablishment_BR records → zero or one SysEmailTable record
EFDocWebServices→EFDocWebServiceParameters_BRJoin on
EFDocEnvironment = EFDocWebServiceParameters_BR.Environment,EFDocAuthority = EFDocWebServiceParameters_BR.AuthorityMany FiscalEstablishment_BR records → zero or one EFDocWebServiceParameters_BR record
FiscalEstablishmentGroup→FiscalEstablishmentGroup_BRJoin on
FiscalEstablishmentGroup_BR = FiscalEstablishmentGroup_BR.RecIdExactly one FiscalEstablishment_BR record → exactly one FiscalEstablishmentGroup_BR record
FiscalEstablishmentSalesIssuer→FiscalEstablishment_BRJoin on
FiscalEstablishmentSalesIssuer = FiscalEstablishment_BR.RecIdExactly one FiscalEstablishment_BR record → exactly one FiscalEstablishment_BR record
FiscalOrganization→FiscalOrganization_BRJoin on
FiscalOrganization_BR = FiscalOrganization_BR.RecIdMany FiscalEstablishment_BR records → zero or one FiscalOrganization_BR record
ConsumerEFDocApprovedEmailTemplate→SysEmailTableJoin on
ConsumerEFDocEmailApproved = SysEmailTable.EmailIdMany FiscalEstablishment_BR records → zero or one SysEmailTable record
ConsumerEFDocWebServices→EFDocWebServiceParameters_BRJoin on
ConsumerEFDocEnvironment = EFDocWebServiceParameters_BR.Environment,ConsumerEFDocAuthority = EFDocWebServiceParameters_BR.AuthorityMany FiscalEstablishment_BR records → zero or one EFDocWebServiceParameters_BR record
EFDocKeyVaultCertificateTable→KeyVaultCertificateTableJoin on
EFDocKeyVaultCertificateRef = KeyVaultCertificateTable.RecIdMany FiscalEstablishment_BR records → zero or one KeyVaultCertificateTable record
Get this data out
Tables are not exposed directly. These public entities read from FiscalEstablishment_BR; use one of them in Power BI, Power Platform or a data management project.
EFDocTechResponsibleInformationEntity· 5 fields from this tableFiscalEstablishmentEntity· 38 fields from this tableFiscalOrganizationFiscalEstablishmentEntity· 3 fields from this tableDimAttributeFiscalEstablishment_BREntity· 2 fields from this tableAssetFixedAssetV2Entity· 1 field from this tableInventOperationalSiteV2Entity· 1 field from this tableAssetFixedAssetEntity· 1 field from this tableEFDocumentReceivedXmlEntity· 1 field from this tableFiscalDocumentTypeEntity· 1 field from this tableFiscalDocumentTypesForCustomersEntity· 1 field from this tableFiscalDocumentTypesForFiscalEstablishmentEntity· 1 field from this tableFiscalDocumentTypesForVendorsEntity· 1 field from this tableFiscalEstablishmentIEPerStateEntity· 1 field from this tableInventOperationalSiteEntity· 1 field from this tableVendorInvoiceHeaderEntity· 1 field from this tableFreeTextInvoiceHeaderEntity· 1 field from this table
Need help with FiscalEstablishment_BR in a report, an integration or a migration? Talk to Dr Dynamics.