Table
RetailFiscalReceiptLine_BR
Fiscal receipt lines
Holds the lines of fiscal receipts from retail sales, used for Brazil. Each record is one line, keyed by store, register, transaction and line number. It links to the fiscal receipt, the item and the product type.
- Table name
RetailFiscalReceiptLine_BR- Module
Commerce stores- Table group
TransactionLine- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
LineNumIdx- Replacement key
LineNumIdx- Key fields
StoreId, TerminalId, TransactionId, LineNum- Model
Foundation
Fields (24)
| 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 | RetailFiscalReceiptLine_BREntity |
TerminalIdRegister where the sale was made. It points to a register. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailFiscalReceiptLine_BREntity |
TransactionIdTransaction number of the fiscal receipt that the line belongs to. | String (44)RetailTransactionId | Yes | RetailFiscalReceipt_BR.TransactionId | RetailFiscalReceiptLine_BREntity |
LineNumNumber of the line on the receipt. | RealLineNum | Yes | RetailFiscalReceiptLine_BREntity | |
CancelledQuantityQuantity on the line that was cancelled. | RealUnitQty | No | RetailFiscalReceiptLine_BREntity | |
CFOPCFOP code of the line. | String (5)SalesPurchCFOPId_BR | No | RetailFiscalReceiptLine_BREntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ItemIdItem sold on the line. It points to an item. | String (20)ItemId | No | InventTable.ItemId | RetailFiscalReceiptLine_BREntity |
ItemTypeProduct type of the item. It points to a product type. | StringInventProductTypeId_BR | No | InventProductTypeTable_BR.ProductTypeId | RetailFiscalReceiptLine_BREntity |
LineAmountGross amount of the line. | RealLineAmount | No | RetailFiscalReceiptLine_BREntity | |
LineDiscountAmountDiscount amount on the line. | RealSalesSumLineDiscAmount | No | RetailFiscalReceiptLine_BREntity | |
LineSurchargeAmountSurcharge amount on the line. | RealRetailSurchargeAmount_BR | No | RetailFiscalReceiptLine_BREntity | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | RetailFiscalReceiptLine_BREntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrintedLineDiscountAmountLine discount as printed on the receipt. | RealSalesSumLineDiscAmount | No | RetailFiscalReceiptLine_BREntity | |
PrintedLineSurchargeAmountLine surcharge as printed on the receipt. | RealRetailSurchargeAmount_BR | No | RetailFiscalReceiptLine_BREntity | |
QuantityQuantity sold on the line, in units. | RealUnitQty | No | RetailFiscalReceiptLine_BREntity | |
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 | RetailFiscalReceiptLine_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 | |
UnitUnit of measure symbol for the quantity. | StringUnitOfMeasureSymbol | No | RetailFiscalReceiptLine_BREntity | |
UnitPricePrice per unit on the line. | RealPriceCur | No | RetailFiscalReceiptLine_BREntity |
Indexes (2)
LineNumIdxPrimary indexReplacement keyStoreId,TerminalId,TransactionId,LineNumUnique, alternate key.
LocationIdxOrigin,ReplicationCounterFromOriginNot unique.
Relations (6)
Each relation joins RetailFiscalReceiptLine_BR to another table on the fields shown.
InventProductTypeTable_BR→InventProductTypeTable_BRJoin on
ItemType = InventProductTypeTable_BR.ProductTypeIdMany RetailFiscalReceiptLine_BR records → zero or one InventProductTypeTable_BR record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany RetailFiscalReceiptLine_BR records → zero or one InventTable record
RetailFiscalReceipt→RetailFiscalReceipt_BRJoin on
StoreId = RetailFiscalReceipt_BR.StoreId,TerminalId = RetailFiscalReceipt_BR.TerminalId,TransactionId = RetailFiscalReceipt_BR.TransactionIdMany RetailFiscalReceiptLine_BR records → exactly one RetailFiscalReceipt_BR record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailFiscalReceiptLine_BR records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailFiscalReceiptLine_BR records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
TransactionId = RetailTransactionTable.transactionIdMany RetailFiscalReceiptLine_BR records → exactly one RetailTransactionTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailFiscalReceiptLine_BR; use one of them in Power BI, Power Platform or a data management project.
RetailFiscalReceiptLine_BREntity· 18 fields from this table
Need help with RetailFiscalReceiptLine_BR in a report, an integration or a migration? Talk to Dr Dynamics.