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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccessKeyAccess key that identifies the electronic fiscal document.String (45)
EFDocAccessKey_BR
NoNone
AccountNumAccount number of the customer or vendor on the document.String (20)
CustVendAC
NoCustTable.AccountNumVendTable.AccountNumNone
AccountTypeSays whether the account is a customer, a vendor or a fiscal establishment.Enum
CustVendType_BR (enum)
NoNone
CancelReasonPoints to the reason record that explains why the document was cancelled.Int64
RefRecId
NoReasonTableRef.RecIdNone
CurrencyCodeCurrency code of the document.String (3)
CustCurrencyCode
YesCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionPoints to the default financial dimension values set for the document.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdNone
DirectionShows whether the document is incoming or outgoing.Enum
FiscalDocDirection_BR (enum)
YesNone
FiscalDocumentTypePoints to the fiscal document type of this document.Int64
RefRecId
NoFiscalDocumentType_BR.RecIdNone
FiscalEstablishmentIdID of the fiscal establishment linked to the document.String
FiscalEstablishmentId_BR
YesFiscalEstablishment_BR.FiscalEstablishmentIdNone
IncomingDocumentNumberNumber of the incoming document, shown as a vendor invoice ID.String (50)
VendInvoiceId
NoNone
InvoiceDateDate of the invoice.Date
TransDate
YesNone
InvoiceNumberInvoice number of the document.String (50)
InvoiceId
NoNone
LogisticsAddressNameName shown on the invoice address.String (100)
LogisticsInvoiceName
YesNone
LogisticsPostalAddressPoints to the postal address record used on the document.Int64
RefRecId
YesLogisticsPostalAddress.RecIdNone
ModelFiscal document model code, up to three characters.String (3)
FiscalDocumentModel_BR
YesFiscalDocModel_BR.ModelNone
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
ReversalYes/No flag that marks the document as a reversal.Enum
NoYes (enum)
NoNone
SeriesSeries code of the fiscal document.String (3)
InvoiceSeries_BR
YesNone
SpecieSpecie of the document, such as NFF, NF, CTRC or CF.Enum
FiscalDocumentSpecie_BR (enum)
NoNone
StatusCurrent status of the document: open, posted, cancel in progress or cancelled.Enum
TaxFiscalDocumentStatus_BR (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxFiscalDocToCancelRecIDPoints to another tax fiscal document that this one relates to for cancellation.Int64
RefRecId
NoTaxFiscalDocument_BR.RecIdNone
TaxFiscalDocumentTypeType of tax fiscal document: ICMS tax transfer or ICMS installment.Enum
TaxFiscalDocumentType_BR (enum)
YesNone
TotalAmountTotal amount of the document in the transaction currency.Real
AmountCur
NoNone
VoucherVoucher number linked to the document.String (20)
Voucher
NoNone

Indexes (3)

Relations (10)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many TaxFiscalDocument_BR records → exactly one Currency record

  • CustTable → CustTable

    Join on AccountNum = CustTable.AccountNum, AccountType = CustVendType_BR::Customer

    Zero or one TaxFiscalDocument_BR record → zero or one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many TaxFiscalDocument_BR records → zero or one DimensionAttributeValueSet record

  • FiscalDocModel_BR → FiscalDocModel_BR

    Join on Model = FiscalDocModel_BR.Model

    Many TaxFiscalDocument_BR records → exactly one FiscalDocModel_BR record

  • FiscalDocumentType → FiscalDocumentType_BR

    Join on FiscalDocumentType = FiscalDocumentType_BR.RecId

    Many TaxFiscalDocument_BR records → zero or one FiscalDocumentType_BR record

  • FiscalEstablishment → FiscalEstablishment_BR

    Join on FiscalEstablishmentId = FiscalEstablishment_BR.FiscalEstablishmentId

    Many TaxFiscalDocument_BR records → exactly one FiscalEstablishment_BR record

  • LogisticsPostalAddress → LogisticsPostalAddress

    Join on LogisticsPostalAddress = LogisticsPostalAddress.RecId

    One or more TaxFiscalDocument_BR records → exactly one LogisticsPostalAddress record

  • ReasonCode → ReasonTableRef

    Join on CancelReason = ReasonTableRef.RecId

    Many TaxFiscalDocument_BR records → zero or one ReasonTableRef record

  • TaxFiscalDocument → TaxFiscalDocument_BR

    Join on TaxFiscalDocToCancelRecID = TaxFiscalDocument_BR.RecId

    Zero or one TaxFiscalDocument_BR record → zero or one TaxFiscalDocument_BR record

  • VendTable → VendTable

    Join on AccountNum = VendTable.AccountNum, AccountType = CustVendType_BR::Vendor

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

Email sales@drdynamics.co.uk