From: pines Date: Thu, 14 Sep 2006 16:38:08 +0000 (+0000) Subject: adding storage version of checked_out[.count] X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=992355b504cfdd1495d9e88f367efa76e37c4656;p=Evergreen.git adding storage version of checked_out[.count] git-svn-id: svn://svn.open-ils.org/ILS/trunk@6098 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm index 8adf1aab71..02bbeaed4a 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm @@ -54,7 +54,7 @@ sub usr_breakdown_out { my $out_sql = <<" SQL"; SELECT id FROM action.circulation - WHERE usr = ? AND checkin_time IS NULL AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE')) + WHERE usr = ? AND checkin_time IS NULL AND due_date >= 'today' AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE')) SQL my $out = actor::user->db_Main->selectcol_arrayref($out_sql, {}, $usr); @@ -62,7 +62,7 @@ sub usr_breakdown_out { my $od_sql = <<" SQL"; SELECT id FROM action.circulation - WHERE usr = ? AND checkin_time IS NULL AND due_date < 'today' + WHERE usr = ? AND checkin_time IS NULL AND due_date < 'today' AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE')) SQL my $od = actor::user->db_Main->selectcol_arrayref($od_sql, {}, $usr);