[Koha-bugs] [Bug 24855] Lost items not marked returned when floating-point math causes amountoutstanding to be not-quite-zero
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Aug 10 13:09:08 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24855
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at bugs.koha-c
| |ommunity.org
--- Comment #4 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I do recreate using the steps from comment 0.
However I am not sure how to fix this, the "pay amount" button does not take
care of the line we selected (as far as I understood).
The "Pay selected" button does, and the problem exists as well here.
I think we should fix that in Koha/Account/Line.pm and Koha/Account.pm where we
compare $debit->amountoutstanding and $new_amountoutstanding with 0 (==0 vs
sprintf %.2f for instance), but it appeared it's not enough so there may be
something else...
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list