Data entity
RetailTransactionAuditableDiscountLineEntity
Holds the discount lines of retail transactions. Each record has a discount amount, percentage, offer ID, discount origin type and a link to a sales line. The key covers operating unit, store, register, transaction, sales line and line number.
- Entity name
RetailTransactionAuditableDiscountLineEntity- Public entity name
RetailTransactionAuditableDiscountLine- OData collection
RetailTransactionAuditableDiscountLines- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
No- Configuration key
Retail- Keys
OperatingUnitNumber, StoreNumber, RegisterNumber, TransactionId, SalesLineNumber, LineNumber- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailTransactionAuditableDiscountLines- Dataverse virtual table
mserp_retailtransactionauditablediscountlineentity. 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
RetailTransactionDiscountTrans· rootRetailChannelTable· OuterJoin toRetailTransactionDiscountTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailOnlineChannelTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailTransactionAuditableEntity· InnerJoin toRetailTransactionDiscountTrans· read-only
Fields (23)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AmountFull 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 | |
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 | |
PercentageDiscount percentage. | RealDiscPct | No | Yes | RetailTransactionDiscountTrans.Percentage | |
PeriodicDiscountOfferIdID 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 | |
StoreNumberNumber of the store where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionDiscountTrans.StoreId |
RegisterNumberNumber of the POS register that handled the transaction. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionDiscountTrans.TerminalId |
TransactionIdNumber of the retail transaction that the discount belongs to. | String (44)RetailTransactionId | Yes | Yes | RetailTransactionDiscountTrans.TransactionId | |
BundleIdID of the discount bundle that the discount is part of. | IntegerRetailDiscountBundleId | No | Yes | RetailTransactionDiscountTrans.BundleId | |
OperatingUnitRecIdOperating 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 | |
HeaderStoreNumberStore where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionTable.store |
HeaderStatementNumberStatement number the transaction is included in. | String (20)RetailStatementId | No | Yes | RetailStatementTable.statementId | RetailTransactionTable.statementId |
HeaderTransactionTypeKind of transaction, such as sales, payment, logon, logoff or tender declaration. | Enum
| No | Yes | RetailTransactionTable.type | |
HeaderValidationStatusResult of validating the transaction, such as pending, in progress, error or successful. | Enum
| No | Yes | RetailTransactionTable.ValidationStatus | |
HeaderAsynchronousOrderStatusCurrent status of the pending order, for example failed, succeeded, pending synchronization or editing. | Enum
| No | Yes | RetailTransactionOrderStatus.Status |
Foreign keys (7)
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
PeriodicDiscountOfferId→RetailPeriodicDiscount.OfferId(key of RetailPeriodicDiscount)Many RetailTransactionDiscountTrans records → exactly one RetailPeriodicDiscount record
RetailPeriodicDiscount details: see GUPRetailDiscountEntity, GUPRetailDiscountV2Entity, RetailDiscountEntity
StoreNumber→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionDiscountTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
RegisterNumber→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionDiscountTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
OperatingUnitRecId→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
HeaderStoreNumber→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionTable records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
HeaderStatementNumber→RetailStatementTable.statementId(key of RetailStatementTable)Many RetailTransactionTable records → exactly one RetailStatementTable record
RetailStatementTable details: see RetailEodStatementAggregationEntity
Need help with RetailTransactionAuditableDiscountLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.