(found <> 'F' or found is NULL)";
}
$query.=" order by priority";
- warn $query;
my $sth=$dbh->prepare($query);
$sth->execute;
my $i=0;
}
}
}
- warn "highest = $highest";
$highest->{'itemnumber'} = $item;
- foreach my $key (keys %$highest) {
- warn "$key : $highest->{$key}\n";
- }
-
return ("Reserved", $highest);
} else {
return (0, 0);
$sth->execute;
$sth->finish;
$dbh->disconnect;
-# now fix the priority on the others....
- fixpriority($res->{'priority'}, $biblio);
}
sub fixpriority {
# print $fee;
my $nextacctno = &getnextacctno($env,$borrnum,$dbh);
my $updquery = "insert into accountlines
- (borrowernumber,accountno,date,amount,description,accounttype,amountoutstanding)
+ (borrowernumber,accountno,date,amount,description,accounttype,amountoutstanding)
values
($borrnum,$nextacctno,now(),$fee,'Reserve Charge - $title','Res',$fee)";
my $usth = $dbh->prepare($updquery);