[open-ils-commits] r11597 - trunk/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 17 09:13:27 EST 2008


Author: miker
Date: 2008-12-17 09:13:26 -0500 (Wed, 17 Dec 2008)
New Revision: 11597

Modified:
   trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql
Log:
apply the "standards" checked out predicate

Modified: trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql	2008-12-17 14:09:49 UTC (rev 11596)
+++ trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql	2008-12-17 14:13:26 UTC (rev 11597)
@@ -500,7 +500,7 @@
           WHERE circ.usr = match_user
             AND circ.checkin_time IS NULL
             AND circ.due_date < NOW()
-            AND (circ.stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE') OR circ.stop_fines IS NULL);
+            AND (circ.stop_fines = 'MAXFINES' OR circ.stop_fines IS NULL);
 
         IF items_overdue >= max_overdue.threshold::INT THEN
             new_sp_row.usr := match_user;
@@ -557,7 +557,7 @@
                 JOIN  actor.org_unit_full_path( max_items_out.org_unit ) fp ON (circ.circ_lib = fp.id)
           WHERE circ.usr = match_user
                 AND circ.checkin_time IS NULL
-                AND (circ.stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE') OR circ.stop_fines IS NULL);
+                AND (circ.stop_fines IN ('MAXFINES','LONGOVERDUE') OR circ.stop_fines IS NULL);
 
            IF items_out >= max_items_out.threshold::INT THEN
             new_sp_row.usr := match_user;



More information about the open-ils-commits mailing list