Removed the "Item has been transfered" message from the returnbook2

subroutine.
This commit is contained in:
finlayt 2002-05-06 04:36:42 +00:00
parent ca7a9d7264
commit fe88c2a022
1 changed files with 1 additions and 4 deletions

View File

@ -585,7 +585,7 @@ sub returnbook2 {
# get information on item
my ($iteminformation) = getiteminformation($env, 0, $barcode);
if (not $iteminformation) {
push(@messages, "<font color='red' size='+2'> There is no book with barcode: $barcode </font>");
push(@messages, "<font color='red' size='+2'> No item with barcode: $barcode </font>");
return (0, \@messages, 0 ,0);
}
# updatelastseen($env, $dbh, $iteminformation->{'itemnumber'});
@ -609,9 +609,6 @@ sub returnbook2 {
my $tbr = $env->{'branchcode'};
my ($transfered, $message, $item) = transferbook($tbr, $barcode);
if ($transfered) {
push(@messages, "Book: as been transfered.");
}
if ($iteminformation->{'itemlost'}) {
updateitemlost($dbh, $iteminformation->{'itemnumber'});