LP#1282751 Avoid credit card payment rounding user/berick/lp1282751-cc-amount-rounding
authorBill Erickson <berickxx@gmail.com>
Tue, 14 Jul 2015 18:25:34 +0000 (14:25 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 14 Jul 2015 19:09:04 +0000 (15:09 -0400)
commitbadbff46cad206e8a171ccc96d1e68a4c4dc153d
tree577320f18e39a76e4afcb181012d215a7987d262
parentacaa94dd13b27f4d2e0077c58c43ce99d52dbda3
LP#1282751 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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm