Data entity
FiscalDocumentTypeEntity
Holds fiscal document types for each fiscal establishment, used for Brazil. It sets the series, document model, specie, and limits for item, service and memo lines. It also links to export format mapping and number sequences. The key is the fiscal establishment and the document type.
- Entity name
FiscalDocumentTypeEntity- Public entity name
FiscalDocumentType- OData collection
FiscalDocumentTypes- Category
Not set- Module
Accounts receivable- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
FiscalEstablishmentId, FiscalDocumentType- Staging table
FiscalDocumentTypeStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/FiscalDocumentTypes- Dataverse virtual table
mserp_fiscaldocumenttypeentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
FiscalDocumentType_BR· rootFiscalEstablishment_BR· InnerJoin toFiscalDocumentType_BR· read-onlyFiscalDocModel_BR· InnerJoin toFiscalDocumentType_BR· read-onlyFiscalDocumentFormat_BR· OuterJoin toFiscalDocumentType_BRERFormatMapping(tableERFormatMappingTable) · OuterJoin toFiscalDocumentFormat_BR· read-onlyERSolution(tableERSolutionTable) · OuterJoin toERFormatMapping· read-onlyERVendor(tableERVendorTable) · OuterJoin toERSolution· read-onlyNumberSequenceEntity· InnerJoin toFiscalDocumentType_BR· read-only
Fields (30)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
FiscalEstablishmentIdUnique ID of the fiscal establishment. It is the business key of the table. | StringFiscalEstablishmentId_BR | Yes | Yes | FiscalEstablishment_BR.FiscalEstablishmentId | |
FiscalDocumentTypeID of the fiscal document type, part of the key. | StringFiscalDocumentTypeId_BR | Yes | Yes | FiscalDocumentType_BR.FiscalDocumentTypeId | |
NameName of the fiscal document type. | String (60)FiscalDocumentName_BR | No | Yes | FiscalDocumentType_BR.Name | |
SeriesSeries of the fiscal document (up to 9 characters). | String (9)FiscalDocumentSeries_BR | No | Yes | FiscalDocumentType_BR.FiscalDocumentSeries | |
FiscalDocumentIssueDateIssue date of the fiscal document. | DateInvoiceIssueDate_BR | No | Yes | FiscalDocumentType_BR.InvoiceIssueDate | |
DocumentModelCode of the document model, up to three characters. | String (3)FiscalDocumentModel_BR | No | Yes | FiscalDocModel_BR.Model | |
SpecieSpecie of the document: NFF, NF, CTRC or CF. | Enum
| No | Yes | FiscalDocumentType_BR.FiscalDocumentSpecie | |
ElectronicFiscalDocumentForServicesYes/no flag that marks the type as an electronic fiscal document for services. | EnumElectronicInvoice_BR
| No | Yes | FiscalDocumentType_BR.ElectronicInvoice | |
ERExportFormatMappingNameName of the format mapping. | String (60)Name | No | Yes | ERFormatMappingTable.Name | |
ERExportFormatSolutionNameName of the configuration. | String (60)Name | No | Yes | ERSolutionTable.Name | |
ERExportFormatVendorUrlInternet address of the provider. | String (255)URLBase | No | Yes | ERVendorTable.Url | |
ExportFileLayoutGroupPoints to the layout group for the export file. | StringConfLayoutGroupId_BR | No | Yes | ConfLayoutGroups_BR.LayoutGroupId | FiscalDocumentFormat_BR.EInvoiceExportLayout |
ReturnFileLayoutGroupPoints to the layout group for the return file. | StringConfLayoutGroupId_BR | No | Yes | ConfLayoutGroups_BR.LayoutGroupId | FiscalDocumentFormat_BR.EInvoiceImportLayout |
MaxItemLinesMaximum number of item lines. | IntegerMaxItemLines_BR | No | Yes | FiscalDocumentFormat_BR.MaxItemLines | |
MaxItemDescriptionSizeMaximum length of an item description. | IntegerMaxItemDescriptionSize_BR | No | Yes | FiscalDocumentFormat_BR.MaxItemDescriptionSize | |
CutOffItemDescriptionYes/No option to cut off long item descriptions. | EnumCutOffItemDescripion_BR
| No | Yes | FiscalDocumentFormat_BR.CutOffItemDescription | |
MaxServiceItemLinesMaximum number of service item lines. | IntegerMaxItemLines_BR | No | Yes | FiscalDocumentFormat_BR.MaxServiceItemLines | |
MaxServiceItemDescriptionMaximum length of a service item description. | IntegerMaxItemDescriptionSize_BR | No | Yes | FiscalDocumentFormat_BR.MaxServiceItemDescription | |
CutOffServiceItemDescriptionYes/No option to cut off long service item descriptions. | EnumCutOffItemDescripion_BR
| No | Yes | FiscalDocumentFormat_BR.CutOffServiceItemDescription | |
MaxMemoLinesMaximum number of memo lines. | IntegerMaxMemoLines_BR | No | Yes | FiscalDocumentFormat_BR.MaxMemoLines | |
MaxMemoDescriptionSizeMaximum length of a memo description. | IntegerMaxMemoDescriptionSize_BR | No | Yes | FiscalDocumentFormat_BR.MaxMemoDescriptionSize | |
CutoffMemoDescriptionYes/No option to cut off long memo descriptions. | EnumCutoffMemoDescription_BR
| No | Yes | FiscalDocumentFormat_BR.CutoffMemoDescription | |
PrintDeliveryAddressAtMemoYes/No option to print the delivery address in the memo. | EnumNoYesId
| No | Yes | FiscalDocumentFormat_BR.PrintDlvAddressInMemo | |
MaxInstallmentsMaximum number of installments. | IntegerMaxInstallments_BR | No | Yes | FiscalDocumentFormat_BR.MaxInstallments | |
FiscalEstablishment_BRPoints to the fiscal establishment that the type belongs to, part of the key. | Int64FiscalEstablishmentRecId_BR | Yes | No (private) | FiscalEstablishment_BR.RecId | FiscalDocumentType_BR.FiscalEstablishment_BR |
FiscalDocumentTypeBRPoints to the fiscal document type. | Int64RefRecId | No | No (private) | FiscalDocumentType_BR.RecId | FiscalDocumentFormat_BR.FiscalDocumentType_BR |
FiscalDocumentModelCode of the document model, linked to the fiscal document model table. | String (3)FiscalDocumentModel_BR | No | No (private) | FiscalDocModel_BR.Model | FiscalDocumentType_BR.FiscalDocumentModel |
FiscalDocumentTypeNumberSequencePoints to the number sequence used for fiscal document numbers. | Int64FiscalDocumentSequenceRecId_BR | Yes | No (private) | NumberSequenceTable.RecId | FiscalDocumentType_BR.FiscalDocumentNumberSequence |
CompanyCompany the scope applies to. | StringSelectableDataArea | No | Yes | NumberSequenceScope.DataArea | |
FiscalDocumentNumberSequenceCode that identifies the number sequence. | StringNumberSequenceCode | No | Yes | NumberSequenceTable.NumberSequence |
Foreign keys (6)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
ExportFileLayoutGroup→ConfLayoutGroups_BR.LayoutGroupId(key of ConfLayoutGroups_BR)Relation also requires ConfLayoutGroups_BR.ConfLayoutExport = 1.
Zero or one FiscalDocumentFormat_BR record → zero or one ConfLayoutGroups_BR record
ConfLayoutGroups_BR details: see ConfiguratorLayoutGroupEntity
ReturnFileLayoutGroup→ConfLayoutGroups_BR.LayoutGroupId(key of ConfLayoutGroups_BR)Relation also requires ConfLayoutGroups_BR.ConfLayoutImport = 1.
One or more FiscalDocumentFormat_BR records → zero or one ConfLayoutGroups_BR record
ConfLayoutGroups_BR details: see ConfiguratorLayoutGroupEntity
FiscalEstablishment_BR→FiscalEstablishment_BR.RecId(key of FiscalEstablishment_BR)One or more FiscalDocumentType_BR records → exactly one FiscalEstablishment_BR record
FiscalEstablishment_BR details: see FiscalEstablishmentEntity, EFDocTechResponsibleInformationEntity, FiscalOrganizationFiscalEstablishmentEntity
FiscalDocumentTypeBR→FiscalDocumentType_BR.RecId(key of FiscalDocumentType_BR)Many FiscalDocumentFormat_BR records → zero or one FiscalDocumentType_BR record
FiscalDocumentType_BR details: see VendorInvoiceHeaderEntity, FiscalDocumentTypesForCustomersEntity, FiscalDocumentTypesForFiscalEstablishmentEntity
FiscalDocumentModel→FiscalDocModel_BR.Model(key of FiscalDocModel_BR)Many FiscalDocumentType_BR records → zero or one FiscalDocModel_BR record
Not exposed by a public entity.
FiscalDocumentTypeNumberSequence→NumberSequenceTable.RecId(key of NumberSequenceTable)Many FiscalDocumentType_BR records → exactly one NumberSequenceTable record
NumberSequenceTable details: see NumberSequenceTableEntity, NumberSequenceTableV2Entity, MCRReqPlanContinuityEntity
Need help with FiscalDocumentTypeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.