apply the "standards" checked out predicate
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Dec 2008 14:13:26 +0000 (14:13 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Dec 2008 14:13:26 +0000 (14:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11597 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/100.circ_matrix.sql

index 4432479..5d354b0 100644 (file)
@@ -500,7 +500,7 @@ BEGIN
           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 @@ BEGIN
                 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;