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 · root
  • RetailChannelTable · OuterJoin to RetailTransactionDiscountTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailTransactionAuditableEntity · InnerJoin to RetailTransactionDiscountTrans · read-only

Fields (23)

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
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
PercentageDiscount percentage.Real
DiscPct
NoYesRetailTransactionDiscountTrans.Percentage
PeriodicDiscountOfferIdID 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
StoreNumberNumber of the store where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionDiscountTrans.StoreId
RegisterNumberNumber 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
OperatingUnitRecIdOperating 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
HeaderStoreNumberStore where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionTable.store
HeaderStatementNumberStatement number the transaction is included in.String (20)
RetailStatementId
NoYesRetailStatementTable.statementIdRetailTransactionTable.statementId
HeaderTransactionTypeKind of transaction, such as sales, payment, logon, logoff or tender declaration.Enum
RetailTransactionType
  • Logoff 0
  • Logon 1
  • Sales 2
  • Payment 3
  • RemoveTender 4
  • FloatEntry 5
  • ChangeTender 6
  • TenderDeclaration 7
  • Voided 8
  • OpenDrawer 9
  • NegativeAdjustment 10
  • PhysicalInventory 11
  • EndOfDay 12
  • EndOfShift 13
  • SalesOrder 14
  • SalesInvoice 15
  • BankDrop 16
  • SafeDrop 17
  • IncomeExpense 18
  • CustomerOrder 19
  • StartingAmount 20
  • SuspendShift 21
  • BlindCloseShift 22
  • CloseShift 23
  • PrintX 24
  • PrintZ 25
  • PendingSalesOrder 27
  • ManagerAuthorize 26
  • KitDisassembly 28
  • ResetPassword 29
  • ChangePassword 30
  • AsyncCustomerQuote 31
  • AsyncCustomerOrder 33
  • ForceDeleteShift 34
  • GiftCardInquiry 35
  • SuspendedTransaction 36
  • AsyncOrderCancellation 37
NoYesRetailTransactionTable.type
HeaderValidationStatusResult of validating the transaction, such as pending, in progress, error or successful.Enum
RetailTransactionValidationStatus
  • None 0
  • Pending 20
  • InProgress 40
  • Failed 60
  • Ok 80
NoYesRetailTransactionTable.ValidationStatus
HeaderAsynchronousOrderStatusCurrent status of the pending order, for example failed, succeeded, pending synchronization or editing.Enum
RetailTransactionOrderStatusType
  • None 0
  • Failed 1
  • Succeeded 2
  • PendingSynchronization 3
  • Editing 4
NoYesRetailTransactionOrderStatus.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.

Need help with RetailTransactionAuditableDiscountLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk