From 8dfd9829625c679a2932f61d9f6fdc2c4aac7647 Mon Sep 17 00:00:00 2001 From: Michele Morgan Date: Fri, 20 Dec 2019 16:00:08 -0500 Subject: [PATCH] LP1781274 Fix floating point issue preventing transactions from closing Limits pending payment amounts to 2 decimal places. Signed-off-by: Michele Morgan --- Open-ILS/web/js/ui/default/staff/circ/patron/bills.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js index 25a01d892d..4d597ebc73 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js @@ -357,7 +357,8 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location, // balance owed on the current item matches or exceeds // the pending payment. Apply the full remainder of // the payment to this item.. and we're done. - item.payment_pending = payment_amount; + // Limit to two decimal places to avoid floating point issues + item.payment_pending = payment_amount.toFixed(2); break; } } -- 2.11.0