fixed coffee script not updating total cost of a grand total discount was being used
make sure total cost does not go below 0 with discounts