Fix purchase exports with discounts.