Applying percentage discounts when the line item data structure doesn't exist