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 descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreIdStore where the sale was made. It points to a store.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailFiscalReceiptLine_BREntity
TerminalIdRegister where the sale was made. It points to a register.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailFiscalReceiptLine_BREntity
TransactionIdTransaction number of the fiscal receipt that the line belongs to.String (44)
RetailTransactionId
YesRetailFiscalReceipt_BR.TransactionIdRetailFiscalReceiptLine_BREntity
LineNumNumber of the line on the receipt.Real
LineNum
YesRetailFiscalReceiptLine_BREntity
CancelledQuantityQuantity on the line that was cancelled.Real
UnitQty
NoRetailFiscalReceiptLine_BREntity
CFOPCFOP code of the line.String (5)
SalesPurchCFOPId_BR
NoRetailFiscalReceiptLine_BREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ItemIdItem sold on the line. It points to an item.String (20)
ItemId
NoInventTable.ItemIdRetailFiscalReceiptLine_BREntity
ItemTypeProduct type of the item. It points to a product type.String
InventProductTypeId_BR
NoInventProductTypeTable_BR.ProductTypeIdRetailFiscalReceiptLine_BREntity
LineAmountGross amount of the line.Real
LineAmount
NoRetailFiscalReceiptLine_BREntity
LineDiscountAmountDiscount amount on the line.Real
SalesSumLineDiscAmount
NoRetailFiscalReceiptLine_BREntity
LineSurchargeAmountSurcharge amount on the line.Real
RetailSurchargeAmount_BR
NoRetailFiscalReceiptLine_BREntity
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
NoRetailFiscalReceiptLine_BREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrintedLineDiscountAmountLine discount as printed on the receipt.Real
SalesSumLineDiscAmount
NoRetailFiscalReceiptLine_BREntity
PrintedLineSurchargeAmountLine surcharge as printed on the receipt.Real
RetailSurchargeAmount_BR
NoRetailFiscalReceiptLine_BREntity
QuantityQuantity sold on the line, in units.Real
UnitQty
NoRetailFiscalReceiptLine_BREntity
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
NoRetailFiscalReceiptLine_BREntity
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
UnitUnit of measure symbol for the quantity.String
UnitOfMeasureSymbol
NoRetailFiscalReceiptLine_BREntity
UnitPricePrice per unit on the line.Real
PriceCur
NoRetailFiscalReceiptLine_BREntity

Indexes (2)

Relations (6)

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

  • InventProductTypeTable_BR → InventProductTypeTable_BR

    Join on ItemType = InventProductTypeTable_BR.ProductTypeId

    Many RetailFiscalReceiptLine_BR records → zero or one InventProductTypeTable_BR record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many RetailFiscalReceiptLine_BR records → zero or one InventTable record

  • RetailFiscalReceipt → RetailFiscalReceipt_BR

    Join on StoreId = RetailFiscalReceipt_BR.StoreId, TerminalId = RetailFiscalReceipt_BR.TerminalId, TransactionId = RetailFiscalReceipt_BR.TransactionId

    Many RetailFiscalReceiptLine_BR records → exactly one RetailFiscalReceipt_BR record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailFiscalReceiptLine_BR records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailFiscalReceiptLine_BR records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on TransactionId = RetailTransactionTable.transactionId

    Many 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.

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

Email sales@drdynamics.co.uk