Set discount amount to 0 if no discount set and check price is set before setting tax