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 108-114 sub pay { Link Here
108
        $fine->amountoutstanding($new_amountoutstanding)->store();
108
        $fine->amountoutstanding($new_amountoutstanding)->store();
109
        $balance_remaining = $balance_remaining - $amount_to_pay;
109
        $balance_remaining = $balance_remaining - $amount_to_pay;
110
110
111
        if ( $fine->itemnumber && $fine->accounttype && ( $fine->accounttype eq 'Rep' || $fine->accounttype eq 'L' ) )
111
        if ( $fine->itemnumber && $fine->accounttype && ( $fine->accounttype eq 'L' ) )
112
        {
112
        {
113
            C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber );
113
            C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber );
114
        }
114
        }
115
- 

Return to bug 22564