From: Michele Morgan Date: Fri, 20 Dec 2019 21:00:08 +0000 (-0500) Subject: LP1781274 Fix floating point issue preventing transactions from closing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4c99fc4bfb37220b150bc5e4de408a72f0f38419;p=evergreen%2Fpines.git LP1781274 Fix floating point issue preventing transactions from closing Limits pending payment amounts to 2 decimal places. Signed-off-by: Michele Morgan --- 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; } }