@@ -, +, @@ without.. item --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/Account.pm +++ a/Koha/Account.pm @@ -101,7 +101,7 @@ sub pay { $fine->amountoutstanding($new_amountoutstanding)->store(); $balance_remaining = $balance_remaining - $amount_to_pay; - if ( $fine->accounttype && ( $fine->accounttype eq 'Rep' || $fine->accounttype eq 'L' ) ) + if ( $fine->itemnumber && $fine->accounttype && ( $fine->accounttype eq 'Rep' || $fine->accounttype eq 'L' ) ) { C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ); } --