Table
FiscalDocumentType_BR
Fiscal document types
Holds fiscal document types set up for a fiscal establishment. It is keyed by fiscal establishment and fiscal document type ID. Each record gives the name, document model, series, specie and number sequence. It is used for Brazil.
- Table name
FiscalDocumentType_BR- Module
Fiscal books brazil- Table group
Parameter- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
FiscalDocumentIdx- Key fields
FiscalEstablishment_BR, FiscalDocumentTypeId- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
FiscalEstablishment_BRPoints to the fiscal establishment that the type belongs to, part of the key. | Int64FiscalEstablishmentRecId_BR | Yes | FiscalEstablishment_BR.RecId | FiscalDocumentTypeEntityVendorInvoiceHeaderEntity |
FiscalDocumentTypeIdID of the fiscal document type, part of the key. | StringFiscalDocumentTypeId_BR | Yes | FiscalDocumentTypeEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 11 more | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ElectronicInvoiceYes/no flag that marks the type as an electronic fiscal document for services. | EnumElectronicInvoice_BRNoYes (enum) | No | FiscalDocumentTypeEntity | |
FiscalDocumentModelCode of the document model, linked to the fiscal document model table. | String (3)FiscalDocumentModel_BR | No | FiscalDocModel_BR.Model | FiscalDocumentTypeEntity |
FiscalDocumentNumberSequencePoints to the number sequence used for fiscal document numbers. | Int64FiscalDocumentSequenceRecId_BR | Yes | NumberSequenceTable.RecId | FiscalDocumentTypeEntity |
FiscalDocumentSeriesSeries of the fiscal document (up to 9 characters). | String (9)FiscalDocumentSeries_BR | No | FiscalDocumentTypeEntity | |
FiscalDocumentSpecieSpecie of the document: NFF, NF, CTRC or CF. | EnumFiscalDocumentSpecie_BR (enum) | No | FiscalDocumentTypeEntity | |
InvoiceIssueDateIssue date of the fiscal document. | DateInvoiceIssueDate_BR | No | FiscalDocumentTypeEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NameName of the fiscal document type. | String (60)FiscalDocumentName_BR | No | FiscalDocumentTypeEntity | |
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 | |
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 |
Indexes (2)
FiscalDocumentIdxReplacement keyFiscalEstablishment_BR,FiscalDocumentTypeIdUnique, alternate key.
NumberSequenceTableIdxNot unique.
Relations (4)
Each relation joins FiscalDocumentType_BR to another table on the fields shown.
FiscalDocModel_BR→FiscalDocModel_BRJoin on
FiscalDocumentModel = FiscalDocModel_BR.ModelMany FiscalDocumentType_BR records → zero or one FiscalDocModel_BR record
FiscalDocumentNumberSequence→NumberSequenceTableJoin on
FiscalDocumentNumberSequence = NumberSequenceTable.RecIdMany FiscalDocumentType_BR records → exactly one NumberSequenceTable record
FiscalDocumentTypeId→FiscalDocumentType_BRJoin on
FiscalDocumentTypeId = FiscalDocumentType_BR.FiscalDocumentTypeIdExactly one FiscalDocumentType_BR record → exactly one FiscalDocumentType_BR record
FiscalEstablishment_BR→FiscalEstablishment_BRJoin on
FiscalEstablishment_BR = FiscalEstablishment_BR.RecIdOne or more FiscalDocumentType_BR records → exactly one FiscalEstablishment_BR record
Get this data out
Tables are not exposed directly. These public entities read from FiscalDocumentType_BR; use one of them in Power BI, Power Platform or a data management project.
FiscalDocumentTypeEntity· 9 fields from this tableSalesOrderHeaderV4Entity· 1 field from this tableSalesOrderHeaderV3Entity· 1 field from this tableSalesOrderLineV3Entity· 1 field from this tableSalesOrderHeaderV2Entity· 1 field from this tableSalesOrderLineV2Entity· 1 field from this tableFiscalDocumentTypesForCustomersEntity· 1 field from this tableFiscalDocumentTypesForFiscalEstablishmentEntity· 1 field from this tableFiscalDocumentTypesForVendorsEntity· 1 field from this tableSalesOrderHeaderEntity· 1 field from this tableVendorInvoiceHeaderEntity· 2 fields from this tableSalesOrderHeaderV2ExistAddrReadOnlyEntity· 1 field from this tableSalesOrderHeaderV3ExistAddrReadOnlyEntity· 1 field from this tableFreeTextInvoiceHeaderEntity· 1 field from this table
Need help with FiscalDocumentType_BR in a report, an integration or a migration? Talk to Dr Dynamics.