[Koha-bugs] [Bug 17164] New: Software error when enrolment fee or reserve fee are too high ( Patron categories)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 23 04:12:54 CEST 2016


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

            Bug ID: 17164
           Summary: Software error when enrolment fee or reserve fee are
                    too high (Patron categories)
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: System Administration
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: aleishaamohia at hotmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

For some reason I had ridiculously high enrolment fee and reserve fee data
causing a software error when trying to access Patron Categories

Software error: Template process failed: undef error - round() overflow. Try
smaller precision or use Math::BigFloat at
/home/vagrant/kohaclone/Koha/Number/Price.pm line 44.
My enrolment fee was set at 8866609962973970000000.00 and my reserve fee was
set at 3862694923528880000000.00

Obviously it's very unlikely for a librarian to set the enrolment fee or
reserve fee to be this high but if it happens accidentally, it breaks the
system and causes this error. Perhaps there should be some kind of constraint
when entering this, like a maximum reserve fee constraint etc.?

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