bug fix :
authorbtoumi <btoumi>
Mon, 21 May 2007 07:45:45 +0000 (07:45 +0000)
committerbtoumi <btoumi>
Mon, 21 May 2007 07:45:45 +0000 (07:45 +0000)
add sql condition to recover only the right record from issues table

C4/Circulation/Fines.pm

index 5c1bbf8..1907c3d 100644 (file)
@@ -338,7 +338,7 @@ my $dbh = C4::Context->dbh;
 my $query = qq|SELECT *  
     FROM issues
     WHERE itemnumber=?
-|;
+    AND returndate IS NULL|;
 my $sth = $dbh->prepare($query);
 $sth->execute($itemnumber);
 my ($issuesinfo)=$sth->fetchrow_hashref;