[ic] 3 decimal places with discount tag
Joshua Lavin
joshua at kingdomdesign.com
Wed Feb 9 21:19:22 EST 2005
On Jan 31, 2005, at 2:10 PM, Joshua Lavin wrote:
> I have an issue with a customer's order that had a 15% discount on all
> items. One of the items showed after the discount as $12.32, but if I
> look at "Edit Order" in the UI, it shows 12.325.
>
> This extra decimal place carried over to the total (though not visible
> to the customer), which caused the credit card charge to round their
> total up a penny, contrary to what IC told them it would be.
I further researched this issue, and found that more than two decimal
places in transactions.total_cost only occured when an order was
discounted.
If the third decimal place is 5 or greater, the customer will be
charged an extra penny than what IC has shown them on their receipt.
Should this be solved with some kind of price formatting, or is this in
fact a bug in the discount and/or subtotal tag?
Thanks,
--
Josh Lavin
Kingdom Design http://www.kingdomdesign.com/
More information about the interchange-users
mailing list