[Koha-bugs] [Bug 16202] New: Rental fees can be generated for fractions of a penny/cent

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 5 13:55:05 CEST 2016


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

            Bug ID: 16202
           Summary: Rental fees can be generated for fractions of a
                    penny/cent
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Circulation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: colin.campbell at ptfs-europe.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

GetIssuingCharges includes a calculation applying any discount to the item
rentalcharge the resulting charge may well include parts of a penny e.g.
1.752643
in one call of the routine the result was being rounded to two decimal places
but in other calls it was not and the resulting amount was saved to the
database. This caused odd behaviour down the line as amounts accrued causing
extra one penny fines to occur or fines not to revert to 0 after user paid the
apparent amount owing. Subroutine should do the rounding before returning the
charge

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


More information about the Koha-bugs mailing list