Table

FiscalEstablishmentFiscalDocumentType_BR

Fiscal document type

Links fiscal document types to fiscal establishments for Brazil. The key has an account code (table, group or all), an account relation and the establishment. It tells which document types apply to a single establishment or to a group of them.

Table name
FiscalEstablishmentFiscalDocumentType_BR
Module
Fiscal books brazil
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
FiscalDocumentType_BRIdx
Key fields
AccountCode, AccountRelation, FiscalEstablishment_BR
Model
Foundation

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountCodeSays whether the row applies to one record (table), a group, or all.Enum
TableGroupAll (enum)
YesFiscalDocumentTypesForFiscalEstablishmentEntity
AccountRelationEstablishment ID or establishment group ID, depending on the account code.String (20)
InventCustVendRel
NoFiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdFiscalEstablishment_BR.FiscalEstablishmentIdFiscalDocumentTypesForFiscalEstablishmentEntity
FiscalEstablishment_BRPoints to the fiscal establishment.Int64
FiscalEstablishmentRecId_BR
NoFiscalEstablishment_BR.RecIdFiscalDocumentTypesForFiscalEstablishmentEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FiscalDocumentType_BRPoints to the fiscal document type.Int64
FiscalDocumentTypeRecID_BR
NoFiscalDocumentType_BR.RecIdFiscalDocumentTypesForFiscalEstablishmentEntity
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

Indexes (3)

Relations (4)

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

  • DestinationFiscalEstablishment → FiscalEstablishment_BR

    Join on AccountRelation = FiscalEstablishment_BR.FiscalEstablishmentId, AccountCode = TableGroupAll::Table

    Many FiscalEstablishmentFiscalDocumentType_BR records → zero or one FiscalEstablishment_BR record

  • FiscalDocumentType → FiscalDocumentType_BR

    Join on FiscalDocumentType_BR = FiscalDocumentType_BR.RecId

    Many FiscalEstablishmentFiscalDocumentType_BR records → exactly one FiscalDocumentType_BR record

  • FiscalEstablishment → FiscalEstablishment_BR

    Join on FiscalEstablishment_BR = FiscalEstablishment_BR.RecId

    Exactly one FiscalEstablishmentFiscalDocumentType_BR record → exactly one FiscalEstablishment_BR record

  • FiscalEstablishmentGroup → FiscalEstablishmentGroup_BR

    Join on AccountCode = TableGroupAll::GroupId, AccountRelation = FiscalEstablishmentGroup_BR.FiscalEstablishmentGroupId

    Many FiscalEstablishmentFiscalDocumentType_BR records → zero or one FiscalEstablishmentGroup_BR record

Get this data out

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

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

Email sales@drdynamics.co.uk