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

i-lateral/silverstripe-checkout