Table

RetailReturnedQuantities

Retail returned quantities

Records the quantity returned for retail sales transaction lines. Each row is keyed by channel, store, register, transaction number and line number. It links to the retail channel, store, POS register and sales transaction records.

Table name
RetailReturnedQuantities
Module
Cross-module and platform
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
transactionLineIdx
Replacement key
None
Key fields
Channel, Store, TerminalId, TransactionId, LineNum
Model
Foundation

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelPoints to the retail channel record.Int64
RefRecId
NoRetailChannelTable.RecIdRetailReturnedQuantitiesEntity
StoreNumber of the store where the sale was made.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailReturnedQuantitiesEntity
TerminalIdNumber of the POS register used.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailReturnedQuantitiesEntity
TransactionIdNumber of the sales transaction.String (44)
RetailTransactionId
YesRetailReturnedQuantitiesEntity
LineNumLine number of the sales transaction line the return relates to.Real
LineNum
YesRetailReturnedQuantitiesEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LastReturnProcessedTimeTime of the latest return transaction counted in the returned quantity.UtcDateTime
LastReturnProcessedTime
YesRetailReturnedQuantitiesEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
ReturnedQtyQuantity that has been returned on the line.Real
Qty
YesRetailReturnedQuantitiesEntity
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

Indexes (1)

Relations (4)

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

  • RetailTransactionSalesTrans → RetailTransactionSalesTrans

    Join on LineNum = RetailTransactionSalesTrans.lineNum, TransactionId = RetailTransactionSalesTrans.transactionId, TerminalId = RetailTransactionSalesTrans.terminalId, Store = RetailTransactionSalesTrans.store

    Zero or one RetailReturnedQuantities record → exactly one RetailTransactionSalesTrans record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailReturnedQuantities records → exactly one RetailTerminalTable record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailReturnedQuantities records → zero or one RetailChannelTable record

  • RetailStoreTable → RetailStoreTable

    Join on Store = RetailStoreTable.StoreNumber

    Many RetailReturnedQuantities records → exactly one RetailStoreTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailReturnedQuantities; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk