From: Terran McCanna Date: Mon, 11 Oct 2021 20:36:08 +0000 (-0400) Subject: Online Renewal - Add standing penalty X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7eb2dc77501eb7ac8c318c7d2fb6f08b41d7a6f5;p=evergreen%2Fpines.git Online Renewal - Add standing penalty Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index d9c58e2d91..f4c8d5ac69 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -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'}} diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 300def8912..f42794d528 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -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 index 0000000000..9923d1793e --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql @@ -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