View | Details | Raw Unified | Return to bug 22564
Collapse All | Expand All

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2380-2386 sub _FixAccountForLostAndReturned { Link Here
2380
    my $accountlines = Koha::Account::Lines->search(
2380
    my $accountlines = Koha::Account::Lines->search(
2381
        {
2381
        {
2382
            itemnumber  => $itemnumber,
2382
            itemnumber  => $itemnumber,
2383
            accounttype => { -in => [ 'L', 'Rep', 'W' ] },
2383
            accounttype => { -in => [ 'L', 'W' ] },
2384
        },
2384
        },
2385
        {
2385
        {
2386
            order_by => { -desc => [ 'date', 'accountlines_id' ] }
2386
            order_by => { -desc => [ 'date', 'accountlines_id' ] }
(-)a/Koha/Account.pm (-2 / +1 lines)
Lines 107-113 sub pay { Link Here
107
        $fine->amountoutstanding($new_amountoutstanding)->store();
107
        $fine->amountoutstanding($new_amountoutstanding)->store();
108
        $balance_remaining = $balance_remaining - $amount_to_pay;
108
        $balance_remaining = $balance_remaining - $amount_to_pay;
109
109
110
        if ( $fine->itemnumber && $fine->accounttype && ( $fine->accounttype eq 'Rep' || $fine->accounttype eq 'L' ) )
110
        if ( $fine->itemnumber && $fine->accounttype && ( $fine->accounttype eq 'L' ) )
111
        {
111
        {
112
            C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber );
112
            C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber );
113
        }
113
        }
114
- 

Return to bug 22564