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 2533-2540
sub AddReturn {
Link Here
|
2533 |
(C4::Context->preference("UseBranchTransferLimits") and |
2532 |
(C4::Context->preference("UseBranchTransferLimits") and |
2534 |
! IsBranchTransferAllowed($branch, $returnbranch, $item->$BranchTransferLimitsType ) |
2533 |
! IsBranchTransferAllowed($branch, $returnbranch, $item->$BranchTransferLimitsType ) |
2535 |
)) { |
2534 |
)) { |
2536 |
ModItemTransfer($item->itemnumber, $branch, $returnbranch, $transfer_trigger, { skip_record_index => 1 }); |
2535 |
my $transfer = ModItemTransfer($item->itemnumber, $branch, $returnbranch, $transfer_trigger, { skip_record_index => 1 }); |
2537 |
$messages->{'WasTransfered'} = $returnbranch; |
2536 |
$messages->{'TransferTo'} = $returnbranch; |
|
|
2537 |
$messages->{'WasTransfered'} = $transfer->id; |
2538 |
$messages->{'TransferTrigger'} = $transfer_trigger; |
2538 |
$messages->{'TransferTrigger'} = $transfer_trigger; |
2539 |
} else { |
2539 |
} else { |
2540 |
$messages->{'NeedsTransfer'} = $returnbranch; |
2540 |
$messages->{'NeedsTransfer'} = $returnbranch; |