[Koha-bugs] [Bug 15770] New: Number::Format issues with large numbers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 9 15:03:11 CET 2016


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

            Bug ID: 15770
           Summary: Number::Format issues with large numbers
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: gmcharlt at gmail.com
          Reporter: julian.maurice at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

In my database I have some large numbers in some database columns
(categories.enrolmentfee for instance), because of TestBuilder I think.
In that case, this cause admin/categories.pl to die with the following error
message:

Template process failed: undef error - round() overflow. Try smaller precision
or use Math::BigFloat at /home/koha/src/Koha/Number/Price.pm line 44

This shouldn't happen in real life, but as Koha allows to enter such big
numbers, this should probably be fixed.

Steps to reproduce:
1. Go to Admin » Categories
2. Click on "New category" button
3. Fill in the required field and set enrolment fee to a big number like
123456789012345 (15 digits seem to be the minimum to reproduce the bug)
4. Save
5. Boom!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list