Fix #295: Discount applied to all price options when more than one price field is set on the form.
This is caused by a check for whether a discount has been applied to all line items happening one level too deep in the loop, so it's only checking within a single price field and then applying the discount to all price fields if that one price fields options all have the discount applied.