Before we get to the compounding discount totaling details for best price and compound within priority, recall the compounding behavior for configuration option of discount concurrency control: best price and compound within priority and no compound across.
- Compound within priority for each of non-threshold discounts and threshold discounts.
- No compound across priority for each of non-threshold discounts and threshold discounts.
- Compounded threshold discounts can compound on top of compounded non-threshold discounts, regardless of priorities.
So the processing order of compounded discount lines for each sales line is the following,
- Non-threshold (one priority only for one sales line)
- Deal/unit price
- Amount off
- Percentage
- Threshold (one priority only for one sales line)
- Amount off
- Percentage