Lines 2376-2385
sub AddReturn {
Link Here
|
2376 |
else { |
2376 |
else { |
2377 |
$messages->{'TransferTrigger'} = $transfer->reason; |
2377 |
$messages->{'TransferTrigger'} = $transfer->reason; |
2378 |
if ( $transfer->frombranch eq $branch ) { |
2378 |
if ( $transfer->frombranch eq $branch ) { |
2379 |
$transfer->transit; |
2379 |
$messages->{'TransferTo'} = $transfer->tobranch; |
2380 |
$messages->{'WasTransfered'} = $transfer->tobranch; |
2380 |
$messages->{'WasTransfered'} = $transfer->id; |
2381 |
} |
2381 |
} else { |
2382 |
else { |
|
|
2383 |
$messages->{'WrongTransfer'} = $transfer->tobranch; |
2382 |
$messages->{'WrongTransfer'} = $transfer->tobranch; |
2384 |
$messages->{'WrongTransferItem'} = $item->itemnumber; |
2383 |
$messages->{'WrongTransferItem'} = $item->itemnumber; |
2385 |
} |
2384 |
} |
Lines 2529-2536
sub AddReturn {
Link Here
|
2529 |
(C4::Context->preference("UseBranchTransferLimits") and |
2528 |
(C4::Context->preference("UseBranchTransferLimits") and |
2530 |
! IsBranchTransferAllowed($branch, $returnbranch, $item->$BranchTransferLimitsType ) |
2529 |
! IsBranchTransferAllowed($branch, $returnbranch, $item->$BranchTransferLimitsType ) |
2531 |
)) { |
2530 |
)) { |
2532 |
ModItemTransfer($item->itemnumber, $branch, $returnbranch, $transfer_trigger, { skip_record_index => 1 }); |
2531 |
my $transfer = ModItemTransfer($item->itemnumber, $branch, $returnbranch, $transfer_trigger, { skip_record_index => 1 }); |
2533 |
$messages->{'WasTransfered'} = $returnbranch; |
2532 |
$messages->{'TransferTo'} = $returnbranch; |
|
|
2533 |
$messages->{'WasTransfered'} = $transfer->id; |
2534 |
$messages->{'TransferTrigger'} = $transfer_trigger; |
2534 |
$messages->{'TransferTrigger'} = $transfer_trigger; |
2535 |
} else { |
2535 |
} else { |
2536 |
$messages->{'NeedsTransfer'} = $returnbranch; |
2536 |
$messages->{'NeedsTransfer'} = $returnbranch; |