[Koha-bugs] [Bug 22377] Lost fines may not be refunded if another patron has a writeoff for the same item

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 7 19:48:34 CET 2019


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

--- Comment #2 from Nick Clemens <nick at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #1)
> Do you have the rule defined? It seems that it is not created on install.

Which rule? 

I believe the problem is in the code  for _FixAccountForLostAndReturned

    my $accountlines = Koha::Account::Lines->search(
        {
            itemnumber  => $itemnumber,
            accounttype => { -in => [ 'L', 'Rep', 'W' ] },
        },
        {
            order_by => { -desc => [ 'date', 'accountno' ] }
        }
    );

We order by date and accountno - so a more recent writeoff will be found
insetad of the lost fine

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


More information about the Koha-bugs mailing list