Fix wrong discount calculation with flat percent promotions
when there are more than one line item in the order