Data entity

RetailTransactionSalesLineV2Entity

Holds the sales lines of retail transactions, one row per line, in the second version of this entity. The key is operating unit, register, transaction number and line number. It covers item, price, discount, tax group, delivery, customer and inventory details. Country-specific extensions and product category data are joined in.

Entity name
RetailTransactionSalesLineV2Entity
Public entity name
RetailTransactionSalesLineV2
OData collection
RetailTransactionSalesLinesV2
Category
Not set
Module
Transactions and orders
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
Terminal, TransactionNumber, LineNumber, OperatingUnitNumber
Staging table
RetailTransactionSalesLineV2Staging

Use it in Power BI and Power Platform

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

Data sources

  • RetailTransactionSalesTrans · root
  • EcoResCategory · OuterJoin to RetailTransactionSalesTrans · read-only
  • EcoResCategoryHierarchy · OuterJoin to EcoResCategory · read-only
  • PCClass · Derived to EcoResCategory
  • LogisticsPostalAddress · OuterJoin to RetailTransactionSalesTrans · read-only
  • LogisticsLocation · OuterJoin to LogisticsPostalAddress · read-only
  • RetailChannelTable · OuterJoin to RetailTransactionSalesTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailReturnStore (table RetailStoreTable) · OuterJoin to RetailTransactionSalesTrans · read-only
  • ReturnOMOperatingUnit (table OMOperatingUnit) · OuterJoin to RetailReturnStore · read-only
  • RetailTransactionSalesTransExt · OuterJoin to RetailTransactionSalesTrans
  • InventDim · OuterJoin to RetailTransactionSalesTrans

Fields (107)

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
TerminalRegister (POS terminal) where the transaction took place.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionSalesTrans.terminalId
TransactionNumberNumber 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
CatalogIdCatalog that the line refers to.Int64
CatalogRefRecId
NoNo (private)Catalog.RecIdRetailTransactionSalesTrans.Catalog
CategoryIdProduct category of the line.Int64
EcoResCategoryId
NoNo (private)EcoResCategory.RecIdRetailTransactionSalesTrans.CategoryId
ChannelRetail channel the transaction belongs to.Int64
RefRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionSalesTrans.Channel
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
CustomerDiscountCustomer discount amount on the line.Real
RetailCustDiscAmount
NoYesRetailTransactionSalesTrans.custDiscAmount
CustomerInvoiceDiscountAmountCustomer invoice discount amount on the line.Real
RetailCustDiscAmount
NoYesRetailTransactionSalesTrans.custInvoiceDiscAmount
CashDiscountAmountDiscount amount on the line.Real
RetailDiscAmount
NoYesRetailTransactionSalesTrans.discAmount
DiscountAmountWithoutTaxDiscount amount without tax.Real
DiscAmountWithoutTax
NoYesRetailTransactionSalesTrans.discAmountWithoutTax
PriceGroupsPrice group used for the line.String
PriceGroupId
NoYesRetailTransactionSalesTrans.discGroupId
OfferNumberPeriodic discount offer applied to the line.String (40)
RetailDiscountOfferId
NoYesRetailPeriodicDiscount.OfferIdRetailTransactionSalesTrans.discOfferId
DiscountAmountForPrintingDiscount amount shown when the receipt or document is printed.Real
DiscAmount
NoYesRetailTransactionSalesTrans.DiscountAmountForPrinting
ModeOfDeliveryMode of delivery for the line.String
CustDlvModeId
NoYesRetailTransactionSalesTrans.DlvMode
ElectronicDeliveryEmailEmail 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
ReasonCodeDiscountDiscount amount that comes from a reason code (info code).Real
RetailInfocodeDiscAmount
NoYesRetailTransactionSalesTrans.infocodeDiscAmount
WarehouseWarehouse linked to the sales line.String
SalesInventLocationId
NoYesInventLocation.InventLocationIdRetailTransactionSalesTrans.InventLocationId
SerialNumberSerial number of the item sold.String (20)
InventSerialId
NoYesInventSerial.InventSerialIdRetailTransactionSalesTrans.InventSerialId
SiteIdInventory site of the line.String
InventSiteId
NoYesRetailTransactionSalesTrans.InventSiteId
InventoryStatusSales 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
ItemIdItem 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
ItemRelationItem relation value stored on the line.low confidenceString (20)
InventItemRelation
NoYesRetailTransactionSalesTrans.itemPostingGroup
KeyboardProductEntryShows whether the item was keyed in by hand.Enum
RetailKeyboardItemEntry
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.keyboardItemEntry
LineDiscountLine 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
IsLineDiscountedShows whether a discount was applied to the line.Enum
RetailLineWasDiscounted
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.lineWasDiscounted
IsLinkedProductNotOriginalShows 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
ChannelListingIDChannel listing ID of the product.String (50)
RetailChannelListingId
NoYesRetailTransactionSalesTrans.ListingId
LogisticPostalAddressIdPostal address linked to the line.Int64
RefRecId
NoNo (private)LogisticsPostalAddress.RecIdRetailTransactionSalesTrans.LogisticsPostalAddress
NetAmountNet amount of the line, without tax.Real
RetailNetAmount
NoYesRetailTransactionSalesTrans.netAmount
NetAmountInclusiveTaxNet amount of the line, labelled as the amount before tax.low confidenceReal
RetailNetAmountInclTax
NoYesRetailTransactionSalesTrans.netAmountInclTax
NetPriceNet price of the item after discounts.Real
RetailNetPrice
NoYesRetailTransactionSalesTrans.netPrice
IsOriginalOfLinkedProductListShows 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
PeriodicDiscountGroupPeriodic discount group of the line.String
RetailPeriodicDiscGroup
NoYesRetailTransactionSalesTrans.periodicDiscGroup
PeriodicDiscountPercentagePercentage of periodic discount on the line.Real
DiscPct
NoYesRetailTransactionSalesTrans.PeriodicPercentageDiscount
PricePrice of the item on the line.Real
Price
NoYesRetailTransactionSalesTrans.price
IsPriceChangeShows 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
IsReturnNoSaleShows whether the line is a return with no matching sale.Enum
RetailReturnNoSale
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.returnNoSale
ReturnQuantityQuantity returned on the line.Real
Qty
NoYesRetailTransactionSalesTrans.returnQty
ReturnTerminalRegister 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
RFIDTagIdRFID tag ID of the item.String (24)
RFIDTagId
NoYesRetailTransactionSalesTrans.RFIDTagId
IsScaleProductShows whether the item is sold by scale.Enum
RetailScaleItem
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.scaleItem
SectionNumberStore section number of the item.String
RetailSectionId
NoYesRetailTransactionSalesTrans.section
ShelfNumberShelf number of the item.String
RetailShelfId
NoYesRetailTransactionSalesTrans.shelf
RequestedShipDateDate the customer asked for shipping.Date
SalesShippingDateRequested
NoYesRetailTransactionSalesTrans.ShippingDateRequested
StandardNetPriceStandard net price of the item.Real
RetailNetPrice
NoYesRetailTransactionSalesTrans.stdNetPrice
SalesTaxAmountSales tax amount on the line.Real
TaxAmount
NoYesRetailTransactionSalesTrans.taxAmount
TotalDiscountTotal discount amount on the line.Real
DiscAmount
NoYesRetailTransactionSalesTrans.totalDiscAmount
TotalDiscountInfoCodeLineNumLine number linked to the total discount reason code.low confidenceReal
LineNum
NoYesRetailTransactionSalesTrans.totalDiscInfoCodeLineNum
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
UnitUnit of measure of the quantity.String
UnitOfMeasureSymbol
NoYesRetailTransactionSalesTrans.unit
UnitPricePrice per unit.Real
Price
NoYesRetailTransactionSalesTrans.unitPrice
UnitQuantityQuantity in units.Real
UnitQty
NoYesRetailTransactionSalesTrans.unitQty
VariantNumberProduct variant of the item.String
RetailVariantId
NoYesRetailTransactionSalesTrans.variantId
IsWeightProductShows whether the item is sold by weight.Enum
RetailWeightItem
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.weightItem
IsWeightManuallyEnteredShows whether the weight was keyed in by hand.Enum
RetailWeightManuallyEntered
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.weightManuallyEntered
CategoryHierarchyPoints to the category hierarchy that the category belongs to.Int64
EcoResCategoryHierarchyId
YesNo (private)EcoResCategoryHierarchy.RecIdEcoResCategory.CategoryHierarchy
CategoryNameName of the category.String (254)
EcoResCategoryName
NoYesEcoResCategory.Name
CategoryHierarchyNameName of the category hierarchy.String (128)
EcoResCategoryHierarchyName
NoYesEcoResCategoryHierarchy.Name
LogisticsPostalAddressLocationThe location record that owns this address.Int64
LogisticsLocationRecId
YesNo (private)LogisticsLocation.RecIdLogisticsPostalAddress.Location
LogisticsPostalAddressValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoYesLogisticsPostalAddress.ValidFrom
LogisticLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
RetailChannelTableOMOperatingUnitIDOperating 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
ReturnOperatingUnitNumberThe number that identifies the operating unit.String (30)
OMOperatingUnitNumber
NoYesOMOperatingUnit.OMOperatingUnitNumber
ItemColorColour of the item sold, taken from the inventory dimensions.String
EcoResColorName
NoYescomputed
ItemSizeSize of the item sold, taken from the inventory dimensions.String
EcoResSizeName
NoYescomputed
ItemStyleStyle of the item sold, taken from the inventory dimensions.String
EcoResStyleName
NoYescomputed
ItemConfigIdConfiguration of the item sold, taken from the inventory dimensions.String (50)
EcoResConfigurationName
NoYescomputed
InventDimIdUnique number for this combination of dimensions.String (20)
InventDimId
NoNo (private)InventDim.inventDimId
SkipReportsFlag that leaves the sales line out of sales reports.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTransExt.SkipReports
LinePercentageDiscountLine discount as a percentage.Real
DiscPct
NoYesRetailTransactionSalesTrans.LinePercentageDiscount
BusinessDateBusiness date of the transaction.Date
RetailBusinessDate
NoYesRetailTransactionSalesTrans.businessDate
TransactionDateDate of the transaction.Date
TransDate
NoYesRetailTransactionSalesTrans.transDate
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
ItemVersionVersion of the item sold, as a text name.String
EcoResVersionName
NoYescomputed
FixedPriceChargesSales charges on the line.Real
SalesMarkup
NoYesRetailTransactionSalesTrans.SalesMarkup
CancelledTransactionNumberNumber of the cancelled transaction linked to this line.String (44)
RetailTransactionId
NoYesRetailTransactionSalesTrans.CancelledTransactionId
BlockItemReturnShows whether returns of this item are blocked at the POS.Enum
RetailBlockItemReturn
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionSalesTrans.BlockItemReturn
ExpediteExpedite value for the line; the exact meaning is not stated in the metadata.low confidenceString
MCRExpedite
NoYesRetailTransactionSalesTrans.Expedite

Foreign keys (21)

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 RetailTransactionSalesLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk