Prevent Discount on Price List of type Any
In Business Central price lists, each line has a Defines (amount type) value that can be Price, Discount, or Price & Discount (type "any"). By default, when the system looks for the best line discount, it also considers lines of type Price & Discount, which can therefore supply a discount independently of the price that was applied.
This feature changes that behavior: the discount on a Price & Discount line is applied only together with the price from the same line, and is no longer used as a "separate" discount.
There are no new fields or pages: the feature works automatically during price and discount calculation.
- Line discount search: when the system looks for the best line discount, it only considers price list lines whose amount type is Discount. Price & Discount lines no longer take part in the discount search.
- Discount tied to the price: when the price comes from a Price & Discount price list line, that same line's Line Discount % is carried along with the price, including when comparing lines to pick the best one.
- Purchase lines: if the direct cost is taken from a Price & Discount price list line, the purchase line's Line Discount % is set to that price list line's discount; the subsequent discount search does not overwrite it with the discount from another Price & Discount line.
- Requisition worksheet lines: same behavior as purchase lines.
A purchase price list contains:
| Line | Amount type | Direct Unit Cost | Line Discount % |
|---|---|---|---|
| A | Price & Discount | 10.00 | 5 |
| B | Price & Discount | 12.00 | 20 |
If the best price is from line A, the purchase line gets a cost of 10.00 and a 5% discount. Without this feature, the system could combine line A's cost with line B's 20% discount.