[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
Fri Apr 9 15:15:47 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24855

--- Comment #5 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
An additional note here: while Koha records amounts out to 6 decimal places, it
appears this issue can occur with fractional cents even smaller than that,
resulting in items not being returned even though the accountlines entry says
the amountoutstanding is 0.000000.

Again, recreating the issue requires some very specific values and actions:
- have an item type that charges a $10 processing fee
- have two items of that item type, one with replacement price 125.68 and the
other with replacement price 33.95
- mark both items as lost, confirm patron owes you 179.63
- take payment of 179.63 for all fees using the Pay Selected button
- the 33.95 item is not marked as returned, but the fee shows 0.000000
outstanding

-- 
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