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 descriptionType / EDT / enumMandatoryReferencesIn public entities
FiscalEstablishment_BRPoints to the fiscal establishment that the type belongs to, part of the key.Int64
FiscalEstablishmentRecId_BR
YesFiscalEstablishment_BR.RecIdFiscalDocumentTypeEntityVendorInvoiceHeaderEntity
FiscalDocumentTypeIdID of the fiscal document type, part of the key.String
FiscalDocumentTypeId_BR
YesFiscalDocumentTypeEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 11 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ElectronicInvoiceYes/no flag that marks the type as an electronic fiscal document for services.Enum
ElectronicInvoice_BR
NoYes (enum)
NoFiscalDocumentTypeEntity
FiscalDocumentModelCode of the document model, linked to the fiscal document model table.String (3)
FiscalDocumentModel_BR
NoFiscalDocModel_BR.ModelFiscalDocumentTypeEntity
FiscalDocumentNumberSequencePoints to the number sequence used for fiscal document numbers.Int64
FiscalDocumentSequenceRecId_BR
YesNumberSequenceTable.RecIdFiscalDocumentTypeEntity
FiscalDocumentSeriesSeries of the fiscal document (up to 9 characters).String (9)
FiscalDocumentSeries_BR
NoFiscalDocumentTypeEntity
FiscalDocumentSpecieSpecie of the document: NFF, NF, CTRC or CF.Enum
FiscalDocumentSpecie_BR (enum)
NoFiscalDocumentTypeEntity
InvoiceIssueDateIssue date of the fiscal document.Date
InvoiceIssueDate_BR
NoFiscalDocumentTypeEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NameName of the fiscal document type.String (60)
FiscalDocumentName_BR
NoFiscalDocumentTypeEntity
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
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (4)

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

  • FiscalDocModel_BR → FiscalDocModel_BR

    Join on FiscalDocumentModel = FiscalDocModel_BR.Model

    Many FiscalDocumentType_BR records → zero or one FiscalDocModel_BR record

  • FiscalDocumentNumberSequence → NumberSequenceTable

    Join on FiscalDocumentNumberSequence = NumberSequenceTable.RecId

    Many FiscalDocumentType_BR records → exactly one NumberSequenceTable record

  • FiscalDocumentTypeId → FiscalDocumentType_BR

    Join on FiscalDocumentTypeId = FiscalDocumentType_BR.FiscalDocumentTypeId

    Exactly one FiscalDocumentType_BR record → exactly one FiscalDocumentType_BR record

  • FiscalEstablishment_BR → FiscalEstablishment_BR

    Join on FiscalEstablishment_BR = FiscalEstablishment_BR.RecId

    One 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.

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

Email sales@drdynamics.co.uk