Table
RetailFiscalReceiptTaxTrans_BR
Fiscal receipt tax transactions
Holds tax details for lines of fiscal receipts, used for Brazil. Each record is one tax type on one receipt line. It links to the receipt line, the receipt and the sales tax code.
- Table name
RetailFiscalReceiptTaxTrans_BR- Module
Commerce stores- 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 (22)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreIdStore where the sale was made. It points to a store. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailFiscalReceiptTaxTrans_BREntity |
TerminalIdRegister where the sale was made. It points to a register. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailFiscalReceiptTaxTrans_BREntity |
TransactionIdTransaction number of the receipt and line that the tax belongs to. | String (44)RetailTransactionId | Yes | RetailFiscalReceiptLine_BR.TransactionIdRetailFiscalReceipt_BR.TransactionId | RetailFiscalReceiptTaxTrans_BREntity |
LineNumNumber of the receipt line that the tax applies to. | RealLineNum | Yes | RetailFiscalReceiptLine_BR.LineNum | RetailFiscalReceiptTaxTrans_BREntity |
TaxTypeType of Brazilian tax, such as IPI, PIS, ICMS or COFINS. | EnumTaxType_BR (enum) | Yes | RetailFiscalReceiptTaxTrans_BREntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FiscalValueFiscal value category, such as with credit/debit or without credit/debit. | EnumTaxFiscalValue_BR (enum) | No | RetailFiscalReceiptTaxTrans_BREntity | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | RetailFiscalReceiptTaxTrans_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 the record is replicated from its origin. | IntegerRetailReplicationCounter | No | RetailFiscalReceiptTaxTrans_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 | |
TaxAmountTax amount for the line. The label calls it the taxable amount, which seems unclear.low confidence | RealTaxAmount | No | RetailFiscalReceiptTaxTrans_BREntity | |
TaxationCodeTaxation code for the line. | String (3)TaxationCode_BR | No | RetailFiscalReceiptTaxTrans_BREntity | |
TaxationOriginOrigin of the goods for taxation, such as national or imported. | EnumFITaxationOrigin_BR (enum) | No | RetailFiscalReceiptTaxTrans_BREntity | |
TaxBaseAmountBase amount that the tax is worked out on. | RealTaxBaseCur | No | RetailFiscalReceiptTaxTrans_BREntity | |
TaxCodeSales tax code applied. It points to a sales tax code. | StringTaxCode | No | TaxTable.TaxCode | RetailFiscalReceiptTaxTrans_BREntity |
TaxValueSales tax rate. | RealTaxValue | No | RetailFiscalReceiptTaxTrans_BREntity | |
TotalizerIndexIndex of the fiscal printer totalizer. | IntegerRetailTotalizerIndex_BR | No | RetailFiscalReceiptTaxTrans_BREntity | |
TotalizerNameName of the fiscal printer totalizer. | StringRetailTotalizerName_BR | No | RetailFiscalReceiptTaxTrans_BREntity |
Indexes (2)
TaxLineIdxPrimary indexReplacement keyStoreId,TerminalId,TransactionId,LineNum,TaxTypeUnique, alternate key.
LocationIdxOrigin,ReplicationCounterFromOriginNot unique.
Relations (6)
Each relation joins RetailFiscalReceiptTaxTrans_BR to another table on the fields shown.
RetailFiscalReceipt→RetailFiscalReceipt_BRJoin on
StoreId = RetailFiscalReceipt_BR.StoreId,TerminalId = RetailFiscalReceipt_BR.TerminalId,TransactionId = RetailFiscalReceipt_BR.TransactionIdMany RetailFiscalReceiptTaxTrans_BR records → exactly one RetailFiscalReceipt_BR record
RetailFiscalReceiptLine→RetailFiscalReceiptLine_BRJoin on
StoreId = RetailFiscalReceiptLine_BR.StoreId,TerminalId = RetailFiscalReceiptLine_BR.TerminalId,TransactionId = RetailFiscalReceiptLine_BR.TransactionId,LineNum = RetailFiscalReceiptLine_BR.LineNumMany RetailFiscalReceiptTaxTrans_BR records → exactly one RetailFiscalReceiptLine_BR record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailFiscalReceiptTaxTrans_BR records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailFiscalReceiptTaxTrans_BR records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
TransactionId = RetailTransactionTable.transactionIdMany RetailFiscalReceiptTaxTrans_BR records → exactly one RetailTransactionTable record
TaxTable→TaxTableJoin on
TaxCode = TaxTable.TaxCodeMany RetailFiscalReceiptTaxTrans_BR records → exactly one TaxTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailFiscalReceiptTaxTrans_BR; use one of them in Power BI, Power Platform or a data management project.
RetailFiscalReceiptTaxTrans_BREntity· 16 fields from this table
Need help with RetailFiscalReceiptTaxTrans_BR in a report, an integration or a migration? Talk to Dr Dynamics.