Table
TaxFiscalDocument_BR
Tax fiscal document
Holds Brazilian tax fiscal documents, such as ICMS tax transfer or ICMS installment documents. Each record has an invoice number, series, document model, direction and status. It links to the customer, vendor or fiscal establishment, and to the fiscal document type. A document can also point to another tax fiscal document that it cancels. Used for Brazil.
- Table name
TaxFiscalDocument_BR- Module
Fiscal books brazil- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccessKeyAccess key that identifies the electronic fiscal document. | String (45)EFDocAccessKey_BR | No | None | |
AccountNumAccount number of the customer or vendor on the document. | String (20)CustVendAC | No | CustTable.AccountNumVendTable.AccountNum | None |
AccountTypeSays whether the account is a customer, a vendor or a fiscal establishment. | EnumCustVendType_BR (enum) | No | None | |
CancelReasonPoints to the reason record that explains why the document was cancelled. | Int64RefRecId | No | ReasonTableRef.RecId | None |
CurrencyCodeCurrency code of the document. | String (3)CustCurrencyCode | Yes | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionPoints to the default financial dimension values set for the document. | Int64DimensionDefault | No | DimensionAttributeValueSet.RecId | None |
DirectionShows whether the document is incoming or outgoing. | EnumFiscalDocDirection_BR (enum) | Yes | None | |
FiscalDocumentTypePoints to the fiscal document type of this document. | Int64RefRecId | No | FiscalDocumentType_BR.RecId | None |
FiscalEstablishmentIdID of the fiscal establishment linked to the document. | StringFiscalEstablishmentId_BR | Yes | FiscalEstablishment_BR.FiscalEstablishmentId | None |
IncomingDocumentNumberNumber of the incoming document, shown as a vendor invoice ID. | String (50)VendInvoiceId | No | None | |
InvoiceDateDate of the invoice. | DateTransDate | Yes | None | |
InvoiceNumberInvoice number of the document. | String (50)InvoiceId | No | None | |
LogisticsAddressNameName shown on the invoice address. | String (100)LogisticsInvoiceName | Yes | None | |
LogisticsPostalAddressPoints to the postal address record used on the document. | Int64RefRecId | Yes | LogisticsPostalAddress.RecId | None |
ModelFiscal document model code, up to three characters. | String (3)FiscalDocumentModel_BR | Yes | FiscalDocModel_BR.Model | None |
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 | |
ReversalYes/No flag that marks the document as a reversal. | EnumNoYes (enum) | No | None | |
SeriesSeries code of the fiscal document. | String (3)InvoiceSeries_BR | Yes | None | |
SpecieSpecie of the document, such as NFF, NF, CTRC or CF. | EnumFiscalDocumentSpecie_BR (enum) | No | None | |
StatusCurrent status of the document: open, posted, cancel in progress or cancelled. | EnumTaxFiscalDocumentStatus_BR (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxFiscalDocToCancelRecIDPoints to another tax fiscal document that this one relates to for cancellation. | Int64RefRecId | No | TaxFiscalDocument_BR.RecId | None |
TaxFiscalDocumentTypeType of tax fiscal document: ICMS tax transfer or ICMS installment. | EnumTaxFiscalDocumentType_BR (enum) | Yes | None | |
TotalAmountTotal amount of the document in the transaction currency. | RealAmountCur | No | None | |
VoucherVoucher number linked to the document. | String (20)Voucher | No | None |
Indexes (3)
LogisticsPostalAddressIdxNot unique.
DimensionAttributeValueSetIdxNot unique.
ReasonTableRefIdxNot unique.
Relations (10)
Each relation joins TaxFiscalDocument_BR to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany TaxFiscalDocument_BR records → exactly one Currency record
CustTable→CustTableJoin on
AccountNum = CustTable.AccountNum,AccountType = CustVendType_BR::CustomerZero or one TaxFiscalDocument_BR record → zero or one CustTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany TaxFiscalDocument_BR records → zero or one DimensionAttributeValueSet record
FiscalDocModel_BR→FiscalDocModel_BRJoin on
Model = FiscalDocModel_BR.ModelMany TaxFiscalDocument_BR records → exactly one FiscalDocModel_BR record
FiscalDocumentType→FiscalDocumentType_BRJoin on
FiscalDocumentType = FiscalDocumentType_BR.RecIdMany TaxFiscalDocument_BR records → zero or one FiscalDocumentType_BR record
FiscalEstablishment→FiscalEstablishment_BRJoin on
FiscalEstablishmentId = FiscalEstablishment_BR.FiscalEstablishmentIdMany TaxFiscalDocument_BR records → exactly one FiscalEstablishment_BR record
LogisticsPostalAddress→LogisticsPostalAddressJoin on
LogisticsPostalAddress = LogisticsPostalAddress.RecIdOne or more TaxFiscalDocument_BR records → exactly one LogisticsPostalAddress record
ReasonCode→ReasonTableRefJoin on
CancelReason = ReasonTableRef.RecIdMany TaxFiscalDocument_BR records → zero or one ReasonTableRef record
TaxFiscalDocument→TaxFiscalDocument_BRJoin on
TaxFiscalDocToCancelRecID = TaxFiscalDocument_BR.RecIdZero or one TaxFiscalDocument_BR record → zero or one TaxFiscalDocument_BR record
VendTable→VendTableJoin on
AccountNum = VendTable.AccountNum,AccountType = CustVendType_BR::VendorZero or one TaxFiscalDocument_BR record → zero or one VendTable record
Get this data out
No public entity reads from TaxFiscalDocument_BR. Its data is only reachable through the application, a custom entity or a database export.
Need help with TaxFiscalDocument_BR in a report, an integration or a migration? Talk to Dr Dynamics.