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@lists.koha-community.org Reporter: luresalo@gmail.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@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.