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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2382-2388 sub _FixAccountForLostAndReturned { Link Here
2382
    my $accountlines = Koha::Account::Lines->search(
2382
    my $accountlines = Koha::Account::Lines->search(
2383
        {
2383
        {
2384
            itemnumber  => $itemnumber,
2384
            itemnumber  => $itemnumber,
2385
            accounttype => { -in => [ 'L', 'Rep', 'W' ] },
2385
            accounttype => { -in => [ 'L', 'W' ] },
2386
        },
2386
        },
2387
        {
2387
        {
2388
            order_by => { -desc => [ 'date', 'accountlines_id' ] }
2388
            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