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

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

Return to bug 22564