...
To record the rules for sales discounts and surcharges:
If a discount of 10% is applied for the sales of a material up to 100 pieces, and 20% is applied for sales exceeding 100 pieces, this rule is defined in a Sales Discount for the calculation of discounts. By doing so, the application automatically determines the correct discount rate when this material is sold.
...