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· rootRetailChannelTable· OuterJoin toRetailTransactionDiscountTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailDirectSalesChannel· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTable
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
EffectiveAmountFull amount of the discount. | RealRetailDiscAmount | No | Yes | RetailTransactionDiscountTrans.Amount | |
ChannelRetail channel the transaction belongs to, pointing to the channel record. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionDiscountTrans.Channel |
CustomerDiscountTypeKind of customer discount, such as line, multiline or total discount. | Enum
| No | Yes | RetailTransactionDiscountTrans.CustomerDiscountType | |
DealPriceDeal price value linked to the discount. | RealRetailDealPriceValue | No | Yes | RetailTransactionDiscountTrans.DealPrice | |
DiscountAmountCash discount amount. | RealDiscAmount | No | Yes | RetailTransactionDiscountTrans.DiscountAmount | |
DiscountCodeCode that identifies the discount. | String (60)RetailDiscountCodeId | No | Yes | RetailTransactionDiscountTrans.DiscountCode | |
DiscountCostCost of the discount. | RealRetailDiscountCost | No | Yes | RetailTransactionDiscountTrans.DiscountCost | |
DiscountOriginTypeWhere the discount came from, such as customer, periodic, manual, loyalty points or tender discount. | Enum
| No | Yes | RetailTransactionDiscountTrans.DiscountOriginType | |
LineNumberLine number of the discount line. | RealLineNum | Yes | Yes | RetailTransactionDiscountTrans.LineNum | |
ManualDiscountTypeKind of manual discount, such as an amount or a percentage on a line or on the total. | Enum
| No | Yes | RetailTransactionDiscountTrans.ManualDiscountType | |
DiscountPercentageDiscount percentage. | RealDiscPct | No | Yes | RetailTransactionDiscountTrans.Percentage | |
DiscountOfferIdID of the periodic discount offer, pointing to the periodic discount record. | String (20)RetailOfferIdEx3 | No | Yes | RetailPeriodicDiscount.OfferId | RetailTransactionDiscountTrans.PeriodicDiscountOfferId |
SalesLineNumberLine number of the sales line that the discount applies to. | RealRetailTransactionSalesLineNum | No | Yes | RetailTransactionDiscountTrans.SaleLineNum | |
BundleIdID of the discount bundle that the discount is part of. | IntegerRetailDiscountBundleId | No | Yes | RetailTransactionDiscountTrans.BundleId | |
TerminalNumber of the POS register that handled the transaction. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionDiscountTrans.TerminalId |
TransactionNumberNumber of the retail transaction that the discount belongs to. | String (44)RetailTransactionId | Yes | Yes | RetailTransactionDiscountTrans.TransactionId | |
RetailChannelTableOMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OperatingUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | Yes | Yes | OMOperatingUnit.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.
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionDiscountTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
DiscountOfferId→RetailPeriodicDiscount.OfferId(key of RetailPeriodicDiscount)Many RetailTransactionDiscountTrans records → exactly one RetailPeriodicDiscount record
RetailPeriodicDiscount details: see GUPRetailDiscountEntity, GUPRetailDiscountV2Entity, RetailDiscountEntity
Terminal→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionDiscountTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
RetailChannelTableOMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Need help with RetailTransactionDiscountLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.