]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1474566 Avoid credit card payment rounding
authorBill Erickson <berickxx@gmail.com>
Tue, 14 Jul 2015 18:25:34 +0000 (14:25 -0400)
committerBen Shum <ben@evergreener.net>
Sat, 27 Feb 2016 23:07:34 +0000 (18:07 -0500)
commita4c3957e6223c04ffa6400b43b4e9e20a145caf8
tree53922124dc432fe0f25c1863e0b2d22109192a26
parent2e6091258775f42c09f10a9043def2a597215e94
LP#1474566 Avoid credit card payment rounding

Calculate total amount for credit payment as integers to avoid rounding
errors w/ large sets of small billings.

E.g. avoid trying to pay a fine of 9.999999999999 for a set of fines
which should add up to 10.00.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm