bug 1742: don't include items on loan in pending holds report
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 14 Mar 2008 21:39:43 +0000 (16:39 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 15 Mar 2008 13:37:16 +0000 (08:37 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
circ/pendingreserves.pl

index d05c8cf..b454644 100755 (executable)
@@ -107,6 +107,7 @@ my $strsth =
  LEFT JOIN biblio ON reserves.biblionumber=biblio.biblionumber
  WHERE reserves.found is NULL 
  $sqldatewhere
+ AND items.itemnumber NOT IN (SELECT itemnumber FROM issues)
  AND reserves.itemnumber is NULL";
 
 if (C4::Context->preference('IndependantBranches')){