Fix discount function to handle decimal places correctly.
Merge pull request #52 from markofcc/bugfix/cvb-161_fix-discount-amount-field

Fix discount function to handle decimal places correctly.