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:30 +0000 (18:07 -0500)
commit00b1e695be7e693903630fe86eabdb8624f5c663
tree6156f628676bfdcd0f1f966b6f9829765e5e55f3
parent5f9ab6499c3539fd84b6517bca25ff59614a78fc
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