Interface: PriceLevel
Represents a price break level based on quantity.
The PriceLevel interface defines a tiered pricing structure where different quantity ranges have different per-unit prices. This enables volume-based discounting where customers receive better prices when ordering larger quantities.
Price levels create a stepped pricing model that incentivizes larger orders while maintaining proper margins at all volume levels. Each level defines a specific quantity range and the pricing that applies within that range.
Price levels are derived from MarketCostPrice entries, which define price points at specific quantity thresholds. For example, if MarketCostPrice entries exist for quantities 1, 5, and 15, they form price levels with ranges 1-4, 5-14, and 15+.
Example
// Price levels generated from MarketCostPrice entries
const priceLevels = [
{ quantityMin: 1, quantityMax: 4, price: 99.00, pricePart: 0 },
{ quantityMin: 5, quantityMax: 14, price: 89.00, pricePart: 0 },
{ quantityMin: 15, quantityMax: 9999, price: 79.00, pricePart: 0 }
];
Properties
discount?
optionaldiscount?:number
Optional discount percentage for this level.
This property provides an alternative way to express the price advantage at this quantity level, as a percentage discount from a reference price. This makes the discount more transparent to customers.
Showing the discount percentage can be more motivating for customers than simply showing the reduced price.