Alright, in #2040 on trunk, I committed the following changes which should
fix this problem.

Modified the Order object Balance method, this method now always returns the
balance rounded to two decimal places.

Also updated the trunc_decimal method, forcing it to round negative numbers
"reverse", So -0.001 rounds to -0.00, not -0.01, which was the previous
default behavior.

Lastly, modified all price fields everywhere in Satchmo to use a new field,
"CurrencyField", which is a DecimalField that displays the current currency
symbol, ensures at least two decimal places, and truncates rightmost zeroes
(leaving at least two places).  This should fix the exponential notation
problem, while keeping the precision in the database itself.

---
Bruce Kroeze
http://solidsitesolutions.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to satchmo-users@googlegroups.com
To unsubscribe from this group, send email to 
satchmo-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to