Hierarchy for line item discounts

When calculating discounts on a line item, the discount is calculated independently of the product price but from the same Pricing and Discounting record. The discount is calculated based on the quantity of 1 and the unit on the line. For example, if the unit is each, the discount is per each. If the unit is box, the discount is per box.