Data entity

RetailTransactionAuditableSalesLineEntity

Holds the sales lines of retail transactions. Each record covers an item and its quantity details, such as the bar code, serial and lot numbers, warehouse and site. It also holds discounts, tax groups, cost and customer data. The key is operating unit, store, register, transaction and line number.

Entity name
RetailTransactionAuditableSalesLineEntity
Public entity name
RetailTransactionAuditableSalesLine
OData collection
RetailTransactionAuditableSalesLines
Category
Transaction
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
No
Configuration key
Retail
Keys
OperatingUnitNumber, StoreNumber, RegisterNumber, TransactionId, LineNumber
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailTransactionAuditableSalesLines
Dataverse virtual table
mserp_retailtransactionauditablesaleslineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Not enabled for import and export projects.

Data sources

  • RetailTransactionSalesTrans · root
  • RetailChannelTable · OuterJoin to RetailTransactionSalesTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • DimensionDAVS (table DimensionSetEntity) · OuterJoin to RetailTransactionSalesTrans · read-only
  • RetailTransactionAuditableEntity · InnerJoin to RetailTransactionSalesTrans · read-only

Fields (90)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
SalesTaxGroupSales tax group linked to the line.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupRetailTransactionSalesTrans.taxGroup
ItemSalesTaxGroupItem sales tax group linked to the line.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupRetailTransactionSalesTrans.TaxItemGroup
StoreNumberStore where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionSalesTrans.store
RegisterNumberRegister (POS terminal) where the transaction took place.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionSalesTrans.terminalId
TransactionIdNumber of the retail transaction that the line belongs to.String (44)
RetailTransactionId
YesYesRetailTransactionTable.transactionIdRetailTransactionSalesTrans.transactionId
BarcodeBar code recorded for the item on this line.String (80)
ItemBarCode
NoYesRetailTransactionSalesTrans.barcode
BusinessDateBusiness date of the transaction.Date
RetailBusinessDate
NoYesRetailTransactionSalesTrans.businessDate
ChannelRetail channel the transaction belongs to.Int64
RefRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionSalesTrans.Channel
CommentShort free-text comment on the line.String (60)
RetailCommentEx5
NoYesRetailTransactionSalesTrans.comment
CostAmountCost amount recorded for the line.Real
CostAmount
NoYesRetailTransactionSalesTrans.costAmount
CurrencyCurrency code for the line.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeRetailTransactionSalesTrans.currency
CustomerAccountCustomer account linked to the sale.String (38)
RetailAsyncCustAccount
NoYesCustTable.AccountNumRetailTransactionSalesTrans.custAccount
DimensionSet of financial dimension values assigned to the line.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdRetailTransactionSalesTrans.DefaultDimension
DiscountAmountDiscount amount on the line.Real
RetailDiscAmount
NoYesRetailTransactionSalesTrans.discAmount
DiscountAmountExcludingTaxDiscount amount without tax.Real
DiscAmountWithoutTax
NoYesRetailTransactionSalesTrans.discAmountWithoutTax
ModeOfDeliveryMode of delivery for the line.String
CustDlvModeId
NoYesRetailTransactionSalesTrans.DlvMode
EmailEmail address for electronic delivery.String (80)
Email
NoYesRetailTransactionSalesTrans.ElectronicDeliveryEmail
RetailEmailAddressContentText content for the electronic delivery email.String (400)
RetailShipAddressEmailContent
NoYesRetailTransactionSalesTrans.ElectronicDeliveryEmailContent
GiftcardShows whether the line is a gift card.Enum
RetailGiftcard
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.giftcard
BatchNumberBatch number of the item sold.String (20)
InventBatchId
NoYesInventBatch.inventBatchIdRetailTransactionSalesTrans.InventBatchId
InventoryDimensionNumberLink to the inventory dimension combination of the line.String (20)
InventDimId
NoYesInventDim.inventDimIdRetailTransactionSalesTrans.inventDimId
WarehouseWarehouse linked to the sales line.String
SalesInventLocationId
NoYesInventLocation.InventLocationIdRetailTransactionSalesTrans.InventLocationId
SerialNumberSerial number of the item sold.String (20)
InventSerialId
NoYesInventSerial.InventSerialIdRetailTransactionSalesTrans.InventSerialId
SiteInventory site of the line.String
InventSiteId
NoYesRetailTransactionSalesTrans.InventSiteId
InventoryStatusSalesSales status of the inventory: None, Reserved or Posted.Enum
RetailInventStatusSales
  • None 0
  • Reserved 1
  • Posted 2
NoYesRetailTransactionSalesTrans.inventStatusSales
LotIDLot ID that links the line to its inventory transaction origin.String (20)
InventTransId
NoYesInventTransOrigin.InventTransIdRetailTransactionSalesTrans.inventTransId
ItemNumberItem sold on the line.String (20)
ItemId
NoYesInventTable.ItemIdRetailTransactionSalesTrans.itemId
ProductScannedShows whether the item was scanned.Enum
RetailItemIdScanned
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.itemIdScanned
KeyboardProductEntryShows whether the item was keyed in by hand.Enum
RetailKeyboardItemEntry
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.keyboardItemEntry
LineDiscountAmountLine discount amount.Real
DiscAmount
NoYesRetailTransactionSalesTrans.lineDscAmount
LineManualDiscountAmountManual discount amount on the line; the label calls it a cash discount amount.Real
DiscAmount
NoYesRetailTransactionSalesTrans.LineManualDiscountAmount
LineManualDiscountPercentageManual discount percentage on the line.Real
DiscPct
NoYesRetailTransactionSalesTrans.LineManualDiscountPercentage
LineNumberLine number within the transaction.Real
LineNum
YesYesRetailTransactionSalesTrans.lineNum
LinkedProductNotOriginalShows whether the line is a linked item and not the original item.Enum
RetailLinkedItemNotOriginal
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.linkedItemNotOriginal
NetAmountNet amount of the line, without tax.Real
RetailNetAmount
NoYesRetailTransactionSalesTrans.netAmount
NetAmountIncludingTaxNet amount of the line, labelled as the amount before tax.low confidenceReal
RetailNetAmountInclTax
NoYesRetailTransactionSalesTrans.netAmountInclTax
OriginalOfLinkedProductListShows whether the line is the original item of a linked item list.Enum
RetailOriginalOfLinkedItemList
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.originalOfLinkedItemList
OriginalPriceOriginal price of the item on the line.Real
Price
NoYesRetailTransactionSalesTrans.originalPrice
OriginalSalesTaxGroupSales tax group the line had originally.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupRetailTransactionSalesTrans.OriginalTaxGroup
OriginalItemSalesTaxGroupItem sales tax group the line had originally.String
TaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupRetailTransactionSalesTrans.OriginalTaxItemGroup
PeriodicDiscountAmountAmount of periodic discount applied to the line.Real
DiscAmount
NoYesRetailTransactionSalesTrans.periodicDiscAmount
PeriodicDiscountPercentagePercentage of periodic discount on the line.Real
DiscPct
NoYesRetailTransactionSalesTrans.PeriodicPercentageDiscount
PricePrice of the item on the line.Real
Price
NoYesRetailTransactionSalesTrans.price
PriceChangeShows whether the price was changed.Enum
RetailPriceChange
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.priceChange
PriceInBarcodeShows whether the price came from the bar code.Enum
RetailPriceInBarcode
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.priceInBarcode
QuantityQuantity sold on the line.Real
Qty
NoYesRetailTransactionSalesTrans.qty
RequestedReceiptDateDate the customer asked to receive the goods.Date
SalesReceiptDateRequested
NoYesRetailTransactionSalesTrans.ReceiptDateRequested
ReceiptNumberReceipt number printed for the transaction.String (18)
RetailReceiptId
NoYesRetailTransactionSalesTrans.receiptId
ReturnLineNumberLine number of the original line being returned.Real
LineNum
NoYesRetailTransactionSalesTrans.returnLineNum
ReturnQuantityQuantity returned on the line.Real
Qty
NoYesRetailTransactionSalesTrans.returnQty
ReturnStoreStore of the original sale that is being returned.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionSalesTrans.returnStore
ReturnRegisterNumberRegister of the original sale that is being returned.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionSalesTrans.returnTerminalId
ReturnTransactionNumberTransaction number of the original sale that is being returned.String (44)
RetailTransactionId
NoYesRetailTransactionSalesTrans.returnTransactionId
RequestedShipDateDate the customer asked for shipping.Date
SalesShippingDateRequested
NoYesRetailTransactionSalesTrans.ShippingDateRequested
SalesStaffSales staff member who handled the line.String (25)
RetailStaffId
NoYesRetailTransactionSalesTrans.staffId
StatementCodeStatement code linked to the line.String (25)
RetailStatementCode
NoYesRetailTransactionSalesTrans.statementCode
StatementNumberStatement that includes this line.String (20)
RetailStatementId
NoYesRetailStatementTable.statementIdRetailTransactionSalesTrans.statementId
SalesTaxAmountSales tax amount on the line.Real
TaxAmount
NoYesRetailTransactionSalesTrans.taxAmount
TotalDiscountAmountTotal discount amount on the line.Real
DiscAmount
NoYesRetailTransactionSalesTrans.totalDiscAmount
TotalDiscountPercentageTotal discount percentage on the line.Real
DiscPct
NoYesRetailTransactionSalesTrans.totalDiscPct
TransactionCodeHow the item was found at the register: Product on file, Product/Barcode not on file or Product blocked.Enum
RetailItemTransactionCode
  • ItemOnFile 0
  • ItemBarcodeNotOnFile 1
  • ItemBlocked 2
NoYesRetailTransactionSalesTrans.transactionCode
TransactionStatusEntry status of the line, such as Voided, Posted, Concluded, Cancelled, On Hold or Training.Enum
RetailTransEntryStatus
RetailEntryStatus
  • None 0
  • Voided 1
  • Posted 2
  • Concluded 3
  • Cancelled 4
  • OnHold 5
  • Training 6
  • PendingInvoice 7
  • CreatingOrder 8
NoYesRetailTransactionSalesTrans.transactionStatus
TransactionDateDate of the transaction.Date
TransDate
NoYesRetailTransactionSalesTrans.transDate
TransactionTimeTime of the transaction.Time
RetailTransTime
NoYesRetailTransactionSalesTrans.transTime
UnitUnit of measure of the quantity.String
UnitOfMeasureSymbol
NoYesRetailTransactionSalesTrans.unit
VariantNumberProduct variant of the item.String
RetailVariantId
NoYesRetailTransactionSalesTrans.variantId
FulfillmentStoreNumberStore that will fulfil the sale.String
RetailFulfillmentStoreId
NoYesRetailTransactionSalesTrans.FulfillmentStoreId
GiftCardNumberNumber of the gift card used on the line.String (30)
RetailGiftCardId
NoYesRetailTransactionSalesTrans.GiftCardNumber
SalesGroupCommission sales group of the line.String
CommissSalesGroup
NoYesCommissionSalesGroup.GroupIdRetailTransactionSalesTrans.SalesGroup
GiftCardBalanceBalance of the gift card.Real
RetailGiftCardBalance
NoYesRetailTransactionSalesTrans.GiftCardBalance
LineDiscountPercentageLine discount as a percentage.Real
DiscPct
NoYesRetailTransactionSalesTrans.LinePercentageDiscount
InventoryDimensionForReturnInventory dimension combination used for the return.String (20)
InventDimId
NoYesRetailTransactionSalesTrans.ReturnInventDimId
SalesTaxOverrideCode for a sales tax override on the line.String (50)
TaxOverrideCode
NoYesRetailTransactionSalesTrans.TaxOverrideCode
IsTaxExemptByTaxOverrideFlag showing whether the line is tax exempt through a tax override code.Enum
IsTaxExemptByTaxOverride
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.IsTaxExemptByTaxOverride
GiftCardOperationGift card action on the line: None, Issue, Add to or Cash out.Enum
RetailGiftCardSalesLineOperation
  • None 0
  • Issue 1
  • AddTo 2
  • CashOut 3
NoYesRetailTransactionSalesTrans.GiftCardOperation
GiftCardTypeType of gift card: Unknown, Internal gift card or External gift card.Enum
RetailGiftCardType
  • Unknown 0
  • InternalGiftCard 1
  • ExternalGiftCard 2
NoYesRetailTransactionSalesTrans.GiftCardType
CompanyThe company (legal entity) that the record belongs to.String (4)
DataAreaId
NoYesRetailTransactionSalesTrans.DataAreaId
OperatingUnitRecIdOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
OperatingUnitNumberThe number that identifies the operating unit.String (30)
OMOperatingUnitNumber
YesYesOMOperatingUnit.OMOperatingUnitNumber
DimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
HeaderTransactionTypeKind of transaction, such as sales, payment, logon, logoff or tender declaration.Enum
RetailTransactionType
  • Logoff 0
  • Logon 1
  • Sales 2
  • Payment 3
  • RemoveTender 4
  • FloatEntry 5
  • ChangeTender 6
  • TenderDeclaration 7
  • Voided 8
  • OpenDrawer 9
  • NegativeAdjustment 10
  • PhysicalInventory 11
  • EndOfDay 12
  • EndOfShift 13
  • SalesOrder 14
  • SalesInvoice 15
  • BankDrop 16
  • SafeDrop 17
  • IncomeExpense 18
  • CustomerOrder 19
  • StartingAmount 20
  • SuspendShift 21
  • BlindCloseShift 22
  • CloseShift 23
  • PrintX 24
  • PrintZ 25
  • PendingSalesOrder 27
  • ManagerAuthorize 26
  • KitDisassembly 28
  • ResetPassword 29
  • ChangePassword 30
  • AsyncCustomerQuote 31
  • AsyncCustomerOrder 33
  • ForceDeleteShift 34
  • GiftCardInquiry 35
  • SuspendedTransaction 36
  • AsyncOrderCancellation 37
NoYesRetailTransactionTable.type
HeaderValidationStatusResult of validating the transaction, such as pending, in progress, error or successful.Enum
RetailTransactionValidationStatus
  • None 0
  • Pending 20
  • InProgress 40
  • Failed 60
  • Ok 80
NoYesRetailTransactionTable.ValidationStatus
HeaderAsynchronousOrderStatusCurrent status of the pending order, for example failed, succeeded, pending synchronization or editing.Enum
RetailTransactionOrderStatusType
  • None 0
  • Failed 1
  • Succeeded 2
  • PendingSynchronization 3
  • Editing 4
NoYesRetailTransactionOrderStatus.Status
TaxExemptPriceInclusiveOriginalPriceLine price before the tax exemption was applied on a tax-inclusive price.Real
RetailTaxExemptOriginalPrice
NoYesRetailTransactionSalesTrans.TaxExemptPriceInclusiveOriginalPrice
TaxExemptPriceInclusiveReductionAmountTax amount removed when tax was exempted on a tax-inclusive price.Real
RetailTaxExemptReductionAmount
NoYesRetailTransactionSalesTrans.TaxExemptPriceInclusiveReductionAmount
PickupStartTimeStart time of the pickup slot.Time
RetailPickupTimeslotStartTime
NoYesRetailTransactionSalesTrans.PickupStartTime
PickupEndTimeEnd time of the pickup slot.Time
RetailPickupTimeslotEndTime
NoYesRetailTransactionSalesTrans.PickupEndTime
ReturnTrackingStatusProcessing state of a return line: None, PendingProcessing or Processed.Enum
RetailReturnTrackingStatus
RetailReturnTrackingStatusType
  • None 0
  • PendingProcessing 1
  • Processed 2
NoYesRetailTransactionSalesTrans.ReturnTrackingStatus
FixedPriceChargesSales charges on the line.Real
SalesMarkup
NoYesRetailTransactionSalesTrans.SalesMarkup
BlockItemReturnShows whether returns of this item are blocked at the POS.Enum
RetailBlockItemReturn
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.BlockItemReturn

Foreign keys (22)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with RetailTransactionAuditableSalesLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk