]> git.evergreen-ils.org Git - Evergreen.git/commit - Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
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:05:49 +0000 (18:05 -0500)
commitd7fba543e4306114f5f78561e7448364438c09b5
tree6a5ae07abe2f24a954df94d28e32b2b856111ba5
parent7a6c4d7da0ec5fa1e8babce91d236638660b083e
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