Table
RetailFiscalDocumentModel2TaxTrans_BR
Fiscal document (model 2) tax transactions
Holds tax lines for fiscal documents (model 2) from retail transactions for Brazil. The key is store, register, transaction, line number and tax type. Each row gives the tax code, base, value and amount.
- Table name
RetailFiscalDocumentModel2TaxTrans_BR- Module
Fiscal books brazil- Table group
TransactionLine- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
TaxLineIdx- Replacement key
TaxLineIdx- Key fields
StoreId, TerminalId, TransactionId, LineNum, TaxType- Model
Foundation
Fields (21)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreIdStore number. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailFiscalDocumentModel2TaxTrans_BREntity |
TerminalIdRegister (POS) number. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailFiscalDocumentModel2TaxTrans_BREntity |
TransactionIdRetail transaction number. | String (44)RetailTransactionId | Yes | RetailFiscalDocumentModel2TaxTrans_BREntity | |
LineNumLine number within the transaction. | RealLineNum | Yes | RetailFiscalDocumentModel2TaxTrans_BREntity | |
TaxTypeKind of tax, such as IPI, PIS, ICMS or COFINS. | EnumTaxType_BR (enum) | Yes | RetailFiscalDocumentModel2TaxTrans_BREntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FiscalValueFiscal value, which shows if the tax gives credit or debit, or is exempt or other. | EnumTaxFiscalValue_BR (enum) | No | RetailFiscalDocumentModel2TaxTrans_BREntity | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | RetailFiscalDocumentModel2TaxTrans_BREntity | |
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 data is replicated from its origin. | IntegerRetailReplicationCounter | No | RetailFiscalDocumentModel2TaxTrans_BREntity | |
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 | |
TaxAmountSales tax amount. | RealTaxAmount | No | RetailFiscalDocumentModel2TaxTrans_BREntity | |
TaxationCodeThree-character taxation code. | String (3)TaxationCode_BR | No | RetailFiscalDocumentModel2TaxTrans_BREntity | |
TaxationOriginTaxation origin of the goods, such as national or imported. | EnumFITaxationOrigin_BR (enum) | No | RetailFiscalDocumentModel2TaxTrans_BREntity | |
TaxBaseAmountBase amount for the tax. | RealTaxBaseCur | No | RetailFiscalDocumentModel2TaxTrans_BREntity | |
TaxCodePoints to the sales tax code. | StringTaxCode | No | TaxTable.TaxCode | RetailFiscalDocumentModel2TaxTrans_BREntity |
TaxReductionPctTax reduction value. Its label is Value.low confidence | RealTaxValue | No | RetailFiscalDocumentModel2TaxTrans_BREntity | |
TaxValueTax rate or value. | RealTaxValue | No | RetailFiscalDocumentModel2TaxTrans_BREntity |
Indexes (2)
TaxLineIdxPrimary indexReplacement keyStoreId,TerminalId,TransactionId,LineNum,TaxTypeUnique, alternate key.
LocationIdxOrigin,ReplicationCounterFromOriginNot unique.
Relations (4)
Each relation joins RetailFiscalDocumentModel2TaxTrans_BR to another table on the fields shown.
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailFiscalDocumentModel2TaxTrans_BR records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailFiscalDocumentModel2TaxTrans_BR records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
TransactionId = RetailTransactionTable.transactionIdMany RetailFiscalDocumentModel2TaxTrans_BR records → exactly one RetailTransactionTable record
TaxTable→TaxTableJoin on
TaxCode = TaxTable.TaxCodeMany RetailFiscalDocumentModel2TaxTrans_BR records → exactly one TaxTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailFiscalDocumentModel2TaxTrans_BR; use one of them in Power BI, Power Platform or a data management project.
RetailFiscalDocumentModel2TaxTrans_BREntity· 15 fields from this table
Need help with RetailFiscalDocumentModel2TaxTrans_BR in a report, an integration or a migration? Talk to Dr Dynamics.