Table

RetailFiscalDocumentTaxTrans_BR

Retail Fiscal Document Tax Transactions

Holds tax lines for the lines of a retail fiscal document in Brazil. Each row is keyed by the document line and a sales tax code. It stores the tax type, base amounts, tax value, taxation code and exemption details.

Table name
RetailFiscalDocumentTaxTrans_BR
Module
Fiscal books brazil
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
Idx
Replacement key
Idx
Key fields
Channel, store, terminal, transactionId, FiscalDocumentSeries, FiscalDocumentNumber, LineNum, TaxCode
Model
Foundation

Fields (29)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRetail channel of the document, by system record ID.Int64
RefRecId
YesRetailChannelTable.RecIdNone
storeNumber of the store of the transaction.String
RetailStoreId
YesRetailFiscalDocumentLine_BR.storeNone
terminalNumber of the register used for the transaction.String
RetailTerminalId
YesRetailFiscalDocumentLine_BR.terminalNone
transactionIdNumber of the retail transaction the document comes from.String (44)
RetailTransactionId
YesRetailFiscalDocumentLine_BR.transactionIdNone
FiscalDocumentSeriesSeries of the retail fiscal document the tax belongs to.String (9)
FiscalDocumentSeries_BR
YesRetailFiscalDocumentLine_BR.FiscalDocumentSeriesNone
FiscalDocumentNumberNumber of the retail fiscal document the tax belongs to.String (20)
FiscalDocumentNumber_BR
YesRetailFiscalDocumentLine_BR.FiscalDocumentNumberNone
LineNumNumber of the document line the tax belongs to.Real
LineNum
YesRetailFiscalDocumentLine_BR.LineNumNone
TaxCodeSales tax code of the tax line.String
TaxCode
YesNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FiscalValueFiscal value showing whether the tax gives credit or debit, or is exempt or other.Enum
TaxFiscalValue_BR (enum)
NoNone
IncludedTaxYes/No flag showing whether the tax is included in the price.Enum
NoYes (enum)
NoNone
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
ReplicationCounterFromOriginCounter used when the record is replicated from its origin.Integer
RetailReplicationCounter
NoNone
RetainedTaxYes/No flag for tax that is retained or to be recovered.Enum
NoYes (enum)
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
TaxAmountTaxable amount.Real
TaxAmount
NoNone
TaxAmountOtherOther tax amount.Real
TaxAmount
NoNone
TaxationCodeTaxation code of the tax line.String (3)
TaxationCode_BR
NoNone
TaxationOriginOrigin of the goods for tax, such as national or imported.Enum
FITaxationOrigin_BR (enum)
NoNone
TaxBaseAmountBase amount the tax is applied to.Real
TaxBaseCur
NoNone
TaxBaseAmountExemptBase amount that is exempt.Real
TaxBaseCur
NoNone
TaxBaseAmountOtherOther base amount.Real
TaxBaseCur
NoNone
TaxExemptCodeExempt code, pointing to the sales tax exempt code table.String
TaxExemptCode_BR
NoTaxExemptCodeTable.ExemptCodeNone
TaxReductionPctTax reduction percentage.Real
TaxValue
NoNone
TaxValueTax value, such as the rate.Real
TaxValue
NoNone
TypeType of tax, such as IPI, PIS, ICMS, COFINS or ISS.Enum
TaxType_BR (enum)
NoNone

Indexes (1)

Relations (3)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailFiscalDocumentTaxTrans_BR records → exactly one RetailChannelTable record

  • RetailFiscalDocumentLine_BR → RetailFiscalDocumentLine_BR

    Join on transactionId = RetailFiscalDocumentLine_BR.transactionId, terminal = RetailFiscalDocumentLine_BR.terminal, store = RetailFiscalDocumentLine_BR.store, Channel = RetailFiscalDocumentLine_BR.Channel, LineNum = RetailFiscalDocumentLine_BR.LineNum, FiscalDocumentSeries = RetailFiscalDocumentLine_BR.FiscalDocumentSeries, FiscalDocumentNumber = RetailFiscalDocumentLine_BR.FiscalDocumentNumber

    Many RetailFiscalDocumentTaxTrans_BR records → exactly one RetailFiscalDocumentLine_BR record

  • TaxExemptCodeTable → TaxExemptCodeTable

    Join on TaxExemptCode = TaxExemptCodeTable.ExemptCode

    Many RetailFiscalDocumentTaxTrans_BR records → zero or one TaxExemptCodeTable record

Get this data out

No public entity reads from RetailFiscalDocumentTaxTrans_BR. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk