fix discounts w/quantities, RT#23530