Data entity

RetailTransactionDiscountTransEntity

Holds discounts applied to the sales lines of retail transactions. Records include discount code, origin type, customer and manual discount types, percentages, amounts, offer ID and bundle ID. The key includes the transaction, sales line, operating unit party number and discount line. It links to the retail channel and store.

Entity name
RetailTransactionDiscountTransEntity
Public entity name
TransactionDiscountTrans
OData collection
TransactionDiscountTrans
Category
Transaction
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
StoreId, TerminalId, TransactionId, SaleLineNum, OMOperatingUnit_PartyNumber, LineNum
Staging table
RetailTransactionDiscountTransStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/TransactionDiscountTrans
Dataverse virtual table
mserp_retailtransactiondiscounttransentity. 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
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailDirectSalesChannel · Derived to RetailChannelTable

Fields (24)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AmountFull 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
DiscountCostCost of the discount.Real
RetailDiscountCost
NoYesRetailTransactionDiscountTrans.DiscountCost
DiscountCodeCode that identifies the discount.String (60)
RetailDiscountCodeId
NoYesRetailTransactionDiscountTrans.DiscountCode
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
LineNumLine 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
OriginNumber of the location where the record originated.String (50)
RetailConnDistributionLocationId
NoYesRetailTransactionDiscountTrans.Origin
PercentageDiscount percentage.Real
DiscPct
NoYesRetailTransactionDiscountTrans.Percentage
PeriodicDiscountOfferIdID of the periodic discount offer, pointing to the periodic discount record.String (20)
RetailOfferIdEx3
NoYesRetailPeriodicDiscount.OfferIdRetailTransactionDiscountTrans.PeriodicDiscountOfferId
ReplicationCounterFromOriginCounter used to track replication of the record from where it was created.Integer
RetailReplicationCounter
NoYesRetailTransactionDiscountTrans.ReplicationCounterFromOrigin
SaleLineNumLine number of the sales line that the discount applies to.Real
RetailTransactionSalesLineNum
NoYesRetailTransactionDiscountTrans.SaleLineNum
StoreIdNumber of the store where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionDiscountTrans.StoreId
TerminalIdNumber of the POS register that handled the transaction.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionDiscountTrans.TerminalId
TransactionIdNumber of the retail transaction that the discount belongs to.String (44)
RetailTransactionId
YesYesRetailTransactionDiscountTrans.TransactionId
BundleIdID of the discount bundle that the discount is part of.Integer
RetailDiscountBundleId
NoYesRetailTransactionDiscountTrans.BundleId
AppliedDiscountLineNumLine number of the applied discount.low confidenceReal
LineNum
NoYesRetailTransactionDiscountTrans.AppliedDiscountLineNum
DiscountLineRecIdSystem record ID of a referenced discount line.low confidenceInt64
RefRecId
NoNo (private)RetailTransactionDiscountTrans.DiscountLineRecId
EffectivePercentageEffective discount percentage.Real
DiscPct
NoYesRetailTransactionDiscountTrans.EffectivePercentage
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
YesYesDirPartyTable.PartyNumber

Foreign keys (5)

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

Email sales@drdynamics.co.uk