Table

RetailSalesQuotationDiscountLine

Discounts for sales quotation line

Holds the discounts applied to a sales quotation line. Each record gives the discount origin (customer, periodic, manual, loyalty or tender) with amounts and percentages. It links to the quotation line by lot ID and, for periodic discounts, to the periodic discount offer.

Table name
RetailSalesQuotationDiscountLine
Module
Commerce transactions and orders
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (23)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AmountDiscount amount in cash.Real
DiscAmount
NoNone
AppliedDiscountLineNumLine number of the applied discount.Real
LineNum
NoNone
BundleIdID of the bundle that the discount belongs to.Integer
RetailDiscountBundleId
NoNone
CalculatedPricingPriorityNumberPricing priority number that was calculated for the discount.Integer
RetailPricingPriorityNumber
NoNone
CustomerDiscountTypeType of customer discount, such as line, multiline or total discount.Enum
RetailCustomerDiscountType (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DealPriceDeal price value for the discount.Real
RetailDealPriceValue
NoNone
DiscountAmountDiscount amount in cash.Real
DiscAmount
NoNone
DiscountCodeCode that identifies the discount.String (60)
RetailDiscountCodeId
NoNone
DiscountOriginTypeWhere the discount comes from, such as customer, periodic, manual, loyalty points or tender.Enum
RetailDiscountOriginType (enum)
NoNone
ExcludedAmountDiscount amount in cash that is excluded.low confidenceReal
DiscAmount
NoNone
InventTransIdLot ID that points to the quotation line.String (20)
TradeInventTransId
NoSalesQuotationLine.InventTransIdNone
IsDiscountExcludedYes or No flag showing whether the discount is excluded.Enum
GUPIsDiscountExcluded
NoYes (enum)
NoNone
ManualDiscountTypeKind of manual discount, either an amount or a percentage, on the line or on the total.Enum
RetailManualDiscountType (enum)
NoNone
OriginalAmountDiscount amount in cash before any change.low confidenceReal
DiscAmount
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PercentageDiscount percentage.Real
DiscPct
NoNone
PeriodicDiscountOfferIdPeriodic discount offer that the discount comes from.String (20)
RetailOfferIdEx3
NoRetailPeriodicDiscount.OfferIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefRecIdRecord ID in the table that this record refers to.Int64
RefRecId
NoNone
RefTableIdID of the table that this record refers to.Integer
RefTableId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (2)

Each relation joins RetailSalesQuotationDiscountLine to another table on the fields shown.

  • RetailPeriodicDiscount → RetailPeriodicDiscount

    Join on PeriodicDiscountOfferId = RetailPeriodicDiscount.OfferId

    Many RetailSalesQuotationDiscountLine records → zero or one RetailPeriodicDiscount record

  • SalesQuotationLine → SalesQuotationLine

    Join on InventTransId = SalesQuotationLine.InventTransId

    Many RetailSalesQuotationDiscountLine records → exactly one SalesQuotationLine record

Get this data out

No public entity reads from RetailSalesQuotationDiscountLine. Its data is only reachable through the application, a custom entity or a database export.

Need help with RetailSalesQuotationDiscountLine in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk