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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelRetail channel of the document, by system record ID. | Int64RefRecId | Yes | RetailChannelTable.RecId | None |
storeNumber of the store of the transaction. | StringRetailStoreId | Yes | RetailFiscalDocumentLine_BR.store | None |
terminalNumber of the register used for the transaction. | StringRetailTerminalId | Yes | RetailFiscalDocumentLine_BR.terminal | None |
transactionIdNumber of the retail transaction the document comes from. | String (44)RetailTransactionId | Yes | RetailFiscalDocumentLine_BR.transactionId | None |
FiscalDocumentSeriesSeries of the retail fiscal document the tax belongs to. | String (9)FiscalDocumentSeries_BR | Yes | RetailFiscalDocumentLine_BR.FiscalDocumentSeries | None |
FiscalDocumentNumberNumber of the retail fiscal document the tax belongs to. | String (20)FiscalDocumentNumber_BR | Yes | RetailFiscalDocumentLine_BR.FiscalDocumentNumber | None |
LineNumNumber of the document line the tax belongs to. | RealLineNum | Yes | RetailFiscalDocumentLine_BR.LineNum | None |
TaxCodeSales tax code of the tax line. | StringTaxCode | Yes | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FiscalValueFiscal value showing whether the tax gives credit or debit, or is exempt or other. | EnumTaxFiscalValue_BR (enum) | No | None | |
IncludedTaxYes/No flag showing whether the tax is included in the price. | EnumNoYes (enum) | No | 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 | |
ReplicationCounterFromOriginCounter used when the record is replicated from its origin. | IntegerRetailReplicationCounter | No | None | |
RetainedTaxYes/No flag for tax that is retained or to be recovered. | EnumNoYes (enum) | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAmountTaxable amount. | RealTaxAmount | No | None | |
TaxAmountOtherOther tax amount. | RealTaxAmount | No | None | |
TaxationCodeTaxation code of the tax line. | String (3)TaxationCode_BR | No | None | |
TaxationOriginOrigin of the goods for tax, such as national or imported. | EnumFITaxationOrigin_BR (enum) | No | None | |
TaxBaseAmountBase amount the tax is applied to. | RealTaxBaseCur | No | None | |
TaxBaseAmountExemptBase amount that is exempt. | RealTaxBaseCur | No | None | |
TaxBaseAmountOtherOther base amount. | RealTaxBaseCur | No | None | |
TaxExemptCodeExempt code, pointing to the sales tax exempt code table. | StringTaxExemptCode_BR | No | TaxExemptCodeTable.ExemptCode | None |
TaxReductionPctTax reduction percentage. | RealTaxValue | No | None | |
TaxValueTax value, such as the rate. | RealTaxValue | No | None | |
TypeType of tax, such as IPI, PIS, ICMS, COFINS or ISS. | EnumTaxType_BR (enum) | No | None |
Indexes (1)
IdxPrimary indexReplacement keyChannel,store,terminal,transactionId,FiscalDocumentSeries,FiscalDocumentNumber,LineNum,TaxCodeUnique, alternate key.
Relations (3)
Each relation joins RetailFiscalDocumentTaxTrans_BR to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailFiscalDocumentTaxTrans_BR records → exactly one RetailChannelTable record
RetailFiscalDocumentLine_BR→RetailFiscalDocumentLine_BRJoin 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.FiscalDocumentNumberMany RetailFiscalDocumentTaxTrans_BR records → exactly one RetailFiscalDocumentLine_BR record
TaxExemptCodeTable→TaxExemptCodeTableJoin on
TaxExemptCode = TaxExemptCodeTable.ExemptCodeMany 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.