Lines 171-176
sub AddReserve {
Link Here
|
171 |
|
171 |
|
172 |
$expdate = output_pref({ str => $expdate, dateonly => 1, dateformat => 'iso' }); |
172 |
$expdate = output_pref({ str => $expdate, dateonly => 1, dateformat => 'iso' }); |
173 |
|
173 |
|
|
|
174 |
# if we have an item selectionned, and the pickup branch is the same as the holdingbranch |
175 |
# of the document, we force the value $priority and $found . |
176 |
if ( $checkitem and not C4::Context->preference('ReservesNeedReturns') ) { |
177 |
$priority = 0; |
178 |
my $item = Koha::Items->find( $checkitem ); # FIXME Prevent bad calls |
179 |
if ( $item->holdingbranch eq $branch ) { |
180 |
$found = 'W'; |
181 |
} |
182 |
} |
183 |
|
174 |
if ( C4::Context->preference('AllowHoldDateInFuture') ) { |
184 |
if ( C4::Context->preference('AllowHoldDateInFuture') ) { |
175 |
|
185 |
|
176 |
# Make room in reserves for this before those of a later reserve date |
186 |
# Make room in reserves for this before those of a later reserve date |