fixing bug : categorytable instead of issuing rules that is the new table name (thx to chris)

This commit is contained in:
tipaul 2005-10-05 09:46:36 +00:00
parent 6b89433acb
commit 334cd38720
1 changed files with 4 additions and 4 deletions

View File

@ -147,12 +147,12 @@ sub CalcFine {
# firstremind, chargeperiod, accountsent, and chargename from the
# categoryitem table.
my $sth=$dbh->prepare("Select * from items,biblioitems,itemtypes,categoryitem where items.itemnumber=?
my $sth=$dbh->prepare("Select * from items,biblioitems,itemtypes,issuingrules where items.itemnumber=?
and items.biblioitemnumber=biblioitems.biblioitemnumber and
biblioitems.itemtype=itemtypes.itemtype and
categoryitem.itemtype=itemtypes.itemtype and
categoryitem.categorycode=? and (items.itemlost <> 1 or items.itemlost is NULL)");
# print $query;
issuingrules.itemtype=itemtypes.itemtype and
issuingrules.categorycode=? and (items.itemlost <> 1 or items.itemlost is NULL)");
$sth->execute($itemnumber,$bortype);
my $data=$sth->fetchrow_hashref;
# FIXME - Error-checking: the item might be lost, or there