Lines 2038-2044
sub AddReturn {
Link Here
|
2038 |
# check if we have a transfer for this document |
2038 |
# check if we have a transfer for this document |
2039 |
my ($datesent,$frombranch,$tobranch) = GetTransfers( $item->itemnumber ); |
2039 |
my ($datesent,$frombranch,$tobranch) = GetTransfers( $item->itemnumber ); |
2040 |
|
2040 |
|
2041 |
# if we have a transfer to do, we update the line of transfers with the datearrived |
2041 |
# if we have a transfer to complete, we update the line of transfers with the datearrived |
2042 |
my $is_in_rotating_collection = C4::RotatingCollections::isItemInAnyCollection( $item->itemnumber ); |
2042 |
my $is_in_rotating_collection = C4::RotatingCollections::isItemInAnyCollection( $item->itemnumber ); |
2043 |
if ($datesent) { |
2043 |
if ($datesent) { |
2044 |
# At this point we will either fill the transfer or it is a wrong transfer |
2044 |
# At this point we will either fill the transfer or it is a wrong transfer |
Lines 2049-2054
sub AddReturn {
Link Here
|
2049 |
"UPDATE branchtransfers SET datearrived = now() WHERE itemnumber= ? AND datearrived IS NULL" |
2049 |
"UPDATE branchtransfers SET datearrived = now() WHERE itemnumber= ? AND datearrived IS NULL" |
2050 |
); |
2050 |
); |
2051 |
$sth->execute( $item->itemnumber ); |
2051 |
$sth->execute( $item->itemnumber ); |
|
|
2052 |
$messages->{'TransferArrived'} = $frombranch; |
2052 |
} else { |
2053 |
} else { |
2053 |
$messages->{'WrongTransfer'} = $tobranch; |
2054 |
$messages->{'WrongTransfer'} = $tobranch; |
2054 |
$messages->{'WrongTransferItem'} = $item->itemnumber; |
2055 |
$messages->{'WrongTransferItem'} = $item->itemnumber; |