Data entity

RetailTransactionDiscountLineEntity

Holds discount lines on retail transactions. Each record is identified by register, transaction number, sales line number, operating unit and discount line number. It stores discount amounts and percentage, discount code, offer ID, bundle ID, deal price, cost, and the discount origin, customer and manual discount types.

Entity name
RetailTransactionDiscountLineEntity
Public entity name
RetailTransactionDiscountLine
OData collection
RetailTransactionDiscountLines
Category
Not set
Module
Transactions and orders
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
Terminal, TransactionNumber, SalesLineNumber, OperatingUnitNumber, LineNumber
Staging table
RetailTransactionDiscountLineStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailTransactionDiscountLines
Dataverse virtual table
mserp_retailtransactiondiscountlineentity. 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

  • RetailTransactionDiscountTrans · root
  • RetailChannelTable · OuterJoin to RetailTransactionDiscountTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable

Fields (18)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
EffectiveAmountFull amount of the discount.Real
RetailDiscAmount
NoYesRetailTransactionDiscountTrans.Amount
ChannelRetail channel the transaction belongs to, pointing to the channel record.Int64
RefRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionDiscountTrans.Channel
CustomerDiscountTypeKind of customer discount, such as line, multiline or total discount.Enum
RetailCustomerDiscountType
  • None 0
  • Line 1
  • Multiline 2
  • TotalDiscount 3
NoYesRetailTransactionDiscountTrans.CustomerDiscountType
DealPriceDeal price value linked to the discount.Real
RetailDealPriceValue
NoYesRetailTransactionDiscountTrans.DealPrice
DiscountAmountCash discount amount.Real
DiscAmount
NoYesRetailTransactionDiscountTrans.DiscountAmount
DiscountCodeCode that identifies the discount.String (60)
RetailDiscountCodeId
NoYesRetailTransactionDiscountTrans.DiscountCode
DiscountCostCost of the discount.Real
RetailDiscountCost
NoYesRetailTransactionDiscountTrans.DiscountCost
DiscountOriginTypeWhere the discount came from, such as customer, periodic, manual, loyalty points or tender discount.Enum
RetailDiscountOriginType
  • None 0
  • Customer 1
  • Periodic 2
  • Manual 3
  • Loyalty_RU 4
  • Tender 5
NoYesRetailTransactionDiscountTrans.DiscountOriginType
LineNumberLine number of the discount line.Real
LineNum
YesYesRetailTransactionDiscountTrans.LineNum
ManualDiscountTypeKind of manual discount, such as an amount or a percentage on a line or on the total.Enum
RetailManualDiscountType
  • None 0
  • LineDiscountAmount 1
  • LineDiscountPercent 2
  • TotalDiscountAmount 3
  • TotalDiscountPercent 4
NoYesRetailTransactionDiscountTrans.ManualDiscountType
DiscountPercentageDiscount percentage.Real
DiscPct
NoYesRetailTransactionDiscountTrans.Percentage
DiscountOfferIdID of the periodic discount offer, pointing to the periodic discount record.String (20)
RetailOfferIdEx3
NoYesRetailPeriodicDiscount.OfferIdRetailTransactionDiscountTrans.PeriodicDiscountOfferId
SalesLineNumberLine number of the sales line that the discount applies to.Real
RetailTransactionSalesLineNum
NoYesRetailTransactionDiscountTrans.SaleLineNum
BundleIdID of the discount bundle that the discount is part of.Integer
RetailDiscountBundleId
NoYesRetailTransactionDiscountTrans.BundleId
TerminalNumber of the POS register that handled the transaction.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionDiscountTrans.TerminalId
TransactionNumberNumber of the retail transaction that the discount belongs to.String (44)
RetailTransactionId
YesYesRetailTransactionDiscountTrans.TransactionId
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

Foreign keys (4)

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

Email sales@drdynamics.co.uk