Lines 1161-1169
sub ModReserveAffect {
Link Here
|
1161 |
my $already_on_shelf = $hold->found && $hold->found eq 'W'; |
1161 |
my $already_on_shelf = $hold->found && $hold->found eq 'W'; |
1162 |
|
1162 |
|
1163 |
$hold->itemnumber($itemnumber); |
1163 |
$hold->itemnumber($itemnumber); |
1164 |
$hold->set_waiting($transferToDo); |
|
|
1165 |
|
1164 |
|
1166 |
if( !$transferToDo ){ |
1165 |
if( !$transferToDo ){ |
|
|
1166 |
$hold->set_waiting(); |
1167 |
_koha_notify_reserve( $hold->reserve_id ) unless $already_on_shelf; |
1167 |
_koha_notify_reserve( $hold->reserve_id ) unless $already_on_shelf; |
1168 |
my $transfers = Koha::Item::Transfers->search({ |
1168 |
my $transfers = Koha::Item::Transfers->search({ |
1169 |
itemnumber => $itemnumber, |
1169 |
itemnumber => $itemnumber, |
Lines 1172-1178
sub ModReserveAffect {
Link Here
|
1172 |
while( my $transfer = $transfers->next ){ |
1172 |
while( my $transfer = $transfers->next ){ |
1173 |
$transfer->datearrived( dt_from_string() )->store; |
1173 |
$transfer->datearrived( dt_from_string() )->store; |
1174 |
}; |
1174 |
}; |
1175 |
} |
1175 |
} else { |
|
|
1176 |
$hold->set_transfer(); |
1177 |
} |
1176 |
|
1178 |
|
1177 |
|
1179 |
|
1178 |
_FixPriority( { biblionumber => $biblionumber } ); |
1180 |
_FixPriority( { biblionumber => $biblionumber } ); |