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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountCodeSays whether the row applies to one record (table), a group, or all. | EnumTableGroupAll (enum) | Yes | FiscalDocumentTypesForFiscalEstablishmentEntity | |
AccountRelationEstablishment ID or establishment group ID, depending on the account code. | String (20)InventCustVendRel | No | FiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdFiscalEstablishment_BR.FiscalEstablishmentId | FiscalDocumentTypesForFiscalEstablishmentEntity |
FiscalEstablishment_BRPoints to the fiscal establishment. | Int64FiscalEstablishmentRecId_BR | No | FiscalEstablishment_BR.RecId | FiscalDocumentTypesForFiscalEstablishmentEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FiscalDocumentType_BRPoints to the fiscal document type. | Int64FiscalDocumentTypeRecID_BR | No | FiscalDocumentType_BR.RecId | FiscalDocumentTypesForFiscalEstablishmentEntity |
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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
FiscalDocumentType_BRIdxReplacement keyAccountCode,AccountRelation,FiscalEstablishment_BRUnique, alternate key.
FiscalEstablishment_BRIdxNot unique.
FiscalDocumentType_BRIdx1Not unique.
Relations (4)
Each relation joins FiscalEstablishmentFiscalDocumentType_BR to another table on the fields shown.
DestinationFiscalEstablishment→FiscalEstablishment_BRJoin on
AccountRelation = FiscalEstablishment_BR.FiscalEstablishmentId,AccountCode = TableGroupAll::TableMany FiscalEstablishmentFiscalDocumentType_BR records → zero or one FiscalEstablishment_BR record
FiscalDocumentType→FiscalDocumentType_BRJoin on
FiscalDocumentType_BR = FiscalDocumentType_BR.RecIdMany FiscalEstablishmentFiscalDocumentType_BR records → exactly one FiscalDocumentType_BR record
FiscalEstablishment→FiscalEstablishment_BRJoin on
FiscalEstablishment_BR = FiscalEstablishment_BR.RecIdExactly one FiscalEstablishmentFiscalDocumentType_BR record → exactly one FiscalEstablishment_BR record
FiscalEstablishmentGroup→FiscalEstablishmentGroup_BRJoin on
AccountCode = TableGroupAll::GroupId,AccountRelation = FiscalEstablishmentGroup_BR.FiscalEstablishmentGroupIdMany 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.
FiscalDocumentTypesForFiscalEstablishmentEntity· 4 fields from this table
Need help with FiscalEstablishmentFiscalDocumentType_BR in a report, an integration or a migration? Talk to Dr Dynamics.