Discount calculation for product prices

Since you can assign more than one discount for each product, the sequence for calculating the discount needs to be defined. The individual discounts are calculated sequentially as follows:
  1. Calculation of the bulk price based on the product price; this results in a reduced unit price per product for the corresponding number of items.
  2. Calculation of the bulk discount based on the bulk price
  3. Calculation of the value discount; The total from bulk pricing minus the quantity discount is compared with the limit for the value discount. If the limit is exceeded, the value discount is applied.