Add discount_rate to line_items and include them in the calculations