cut-and-paste-o when adding the collections warning penalty calc
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Apr 2009 17:04:21 +0000 (17:04 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Apr 2009 17:04:21 +0000 (17:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12977 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index b27fb73..892866f 100644 (file)
@@ -598,7 +598,7 @@ BEGIN
                   FROM  actor.usr_standing_penalty
                   WHERE usr = match_user
                         AND org_unit = max_fines.org_unit
-                        AND standing_penalty = 1
+                        AND standing_penalty = 4
                 LOOP
             RETURN NEXT existing_sp_row;
         END LOOP;
@@ -621,7 +621,7 @@ BEGIN
         IF current_fines >= max_fines.threshold THEN
             new_sp_row.usr := match_user;
             new_sp_row.org_unit := max_fines.org_unit;
-            new_sp_row.standing_penalty := 1;
+            new_sp_row.standing_penalty := 4;
             RETURN NEXT new_sp_row;
         END IF;
     END IF;