Online Renewal - Add standing penalty
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 11 Oct 2021 20:36:08 +0000 (16:36 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Mon, 11 Oct 2021 20:36:08 +0000 (16:36 -0400)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql [new file with mode: 0644]

index d9c58e2..f4c8d5a 100644 (file)
@@ -3478,10 +3478,9 @@ sub has_penalties {
     });
 
     #check for PATRON_TEMP_RENEWAL
-    ##### THIS WILL BE A DIFFERENT NUMBER ON PRODUCTION #####
     my $searchpenalty_temp = new_editor()->search_actor_user_standing_penalty({
         usr => $user->id,
-        standing_penalty => 101,
+        standing_penalty => 201,
         '-or' => [
             {stop_date => undef},
             {stop_date => {'>' => 'now'}}
index 300def8..f42794d 100644 (file)
@@ -91,7 +91,7 @@ INSERT INTO config.standing_penalty (id, name, label, staff_alert, org_depth) VA
         TRUE,
         0
     );
-
+INSERT INTO config.standing_penalty (id, name, label, staff_alert, org_depth) VALUES (201, 'PATRON_TEMP_RENEWAL', 'Patron was given a 30-day temporary account renewal. Please archive this message after the account is fully renewed.', TRUE, 0);
 
 SELECT SETVAL('config.standing_penalty_id_seq', 100);
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql
new file mode 100644 (file)
index 0000000..9923d17
--- /dev/null
@@ -0,0 +1,9 @@
+BEGIN;
+
+INSERT INTO config.standing_penalty (id, name, label, staff_alert, org_depth) 
+VALUES (201, 'PATRON_TEMP_RENEWAL', 
+       'Patron was given a 30-day temporary account renewal. 
+       Please archive this message after the account is fully renewed.', TRUE, 0
+       );
+
+COMMIT;
\ No newline at end of file