[Koha-bugs] [Bug 3166] Fines are summing off by 1 penny due to rounding issue when summing.

bugzilla-daemon at liblime.com bugzilla-daemon at liblime.com
Fri May 1 00:26:33 CEST 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3166


Ryan Higgins <rch at liblime.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rch at liblime.com




--- Comment #2 from Ryan Higgins <rch at liblime.com>  2009-04-30 22:26:33 ---

I think the proper way to do this is to do integer math.  Do we really need to
support more than two decimal places ?  If so,
I suggest a system preference for CurrencyDecimalPlaces and a fcn
C4::Output::as_currency().  (Or C4::Koha::).
The db will then always hold an integer value of 'cents' (or amount *
10^(CurrencyDecimalPlaces) ).


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list