fix issue#8 and 11. incorrect discount amount, and amount tender is not saved/reflected