LP#1474566 Avoid credit card payment rounding user/berick/lp1474566-cc-amount-rounding
authorBill Erickson <berickxx@gmail.com>
Tue, 14 Jul 2015 18:25:34 +0000 (14:25 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 19 Feb 2016 15:11:08 +0000 (10:11 -0500)
commita77ed236a82d47a3a05deaafc4e5248b25322351
treef14a5ffcd1ccecd20a0770248785509f8e78729e
parent825e7bb13c0b976b2368787c47370568b0f8c1fa
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm