https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18774 Bug ID: 18774 Summary: Internal Server Error in Price.pm with big numbers Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: veron@veron.ch QA Contact: testopia@bugs.koha-community.org If users accidentally enter a big number e.g. in Home > Patrons > Manual invoice, Koha fails with an Internal Server Error in Price.pm To reproduce, enter a value of: 99999999999999 Plack error log says: Template process failed: undef error - round() overflow. Try smaller precision or use Math::BigFloat at /home/marc/koha/Koha/Number/Price.pm line 44. After that error, the detail page of the user where the invoice was applied can no longer be displayed, it produces the same Internal Server Error This is due to the fact that the big number is stored in table accountlines. Setting to major because normal users can not recover from this situation. To recover, you have to delete or update the records in table accountlines. The same error can be produced with a manual credit. The same error can occur in Administration > Patron Categories if the numbers in the database are too big, see http://irc.koha-community.org/koha/2017-06-09#i_1942793 ...but it can not be reproduced by entering a big number. Biggest number you can enter is: 99999999 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.