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

(-)a/Koha/Account.pm (-3 / +4 lines)
Lines 120-126 sub pay { Link Here
120
            && $fine->debit_type_code
120
            && $fine->debit_type_code
121
            && ( $fine->debit_type_code eq 'LOST' ) )
121
            && ( $fine->debit_type_code eq 'LOST' ) )
122
        {
122
        {
123
            C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber );
123
            my $checkout = Koha::Checkouts->find($fine->itemnumber);
124
            C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ) unless $checkout;
124
        }
125
        }
125
126
126
        my $account_offset = Koha::Account::Offset->new(
127
        my $account_offset = Koha::Account::Offset->new(
Lines 179-185 sub pay { Link Here
179
            && $fine->debit_type_code
180
            && $fine->debit_type_code
180
            && ( $fine->debit_type_code eq 'LOST' ) )
181
            && ( $fine->debit_type_code eq 'LOST' ) )
181
        {
182
        {
182
            C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber );
183
            my $checkout = Koha::Checkouts->find($fine->itemnumber);
184
            C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ) unless $checkout;
183
        }
185
        }
184
186
185
        my $account_offset = Koha::Account::Offset->new(
187
        my $account_offset = Koha::Account::Offset->new(
186
- 

Return to bug 24474