Bug 18501: Adjust condition for flagging an item found
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
9aa5eb713d
commit
0a651f9ee7
|
|
@ -172,7 +172,9 @@ sub store {
|
|||
# If item was lost, it has now been found, reverse any list item charges if necessary.
|
||||
if ( exists $updated_columns{itemlost}
|
||||
and $self->itemlost != $updated_columns{itemlost}
|
||||
and $updated_columns{itemlost} >= 1 ) {
|
||||
and $self->itemlost >= 1
|
||||
and $updated_columns{itemlost} <= 0
|
||||
) {
|
||||
$self->_set_found_trigger;
|
||||
$self->paidfor('');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue