Lines 492-505
sub apply {
Link Here
|
492 |
} |
492 |
} |
493 |
|
493 |
|
494 |
# Same logic exists in Koha::Account::pay |
494 |
# Same logic exists in Koha::Account::pay |
495 |
if ( $debit->amountoutstanding == 0 |
495 |
if ( |
496 |
&& $debit->itemnumber |
496 |
C4::Context->preference('MarkLostItemsAsReturned') =~ |
|
|
497 |
m|onpayment| |
497 |
&& $debit->debit_type_code |
498 |
&& $debit->debit_type_code |
498 |
&& $debit->debit_type_code eq 'LOST' ) |
499 |
&& $debit->debit_type_code eq 'LOST' |
|
|
500 |
&& $debit->amountoutstanding == 0 |
501 |
&& $debit->itemnumber |
502 |
&& !( |
503 |
$self->credit_type_code eq 'LOST_FOUND' |
504 |
&& $self->itemnumber == $debit->itemnumber |
505 |
) |
506 |
) |
499 |
{ |
507 |
{ |
500 |
C4::Circulation::ReturnLostItem( $self->borrowernumber, $debit->itemnumber ); |
508 |
C4::Circulation::ReturnLostItem( $self->borrowernumber, |
|
|
509 |
$debit->itemnumber ); |
501 |
} |
510 |
} |
502 |
|
|
|
503 |
} |
511 |
} |
504 |
}); |
512 |
}); |
505 |
|
513 |
|
506 |
- |
|
|