[Koha-bugs] [Bug 16255] New: When exemptfine, removes the first fine found

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 13 21:17:57 CEST 2016


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

            Bug ID: 16255
           Summary: When exemptfine, removes the first fine found
 Change sponsored?: ---
           Product: Koha
           Version: 3.18
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Circulation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: luresalo at gmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

If one item has more than one "FU" or "O" fine for user, returns the first/old
one and not the latest one.

Solved by adding to the _FixOverduesOnReturn, 

from this: 

"SELECT * FROM accountlines WHERE (borrowernumber = ?) AND (itemnumber = ?) AND
(accounttype='FU' OR accounttype='O')"

to this:

"SELECT * FROM accountlines WHERE (borrowernumber = ?) AND (itemnumber = ?) AND
(accounttype='FU' OR accounttype='O') ORDER BY timestamp DESC"

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