Online Renewal - tweak expire date comparison
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 27 Dec 2022 18:05:33 +0000 (13:05 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 4 Jan 2023 15:25:26 +0000 (10:25 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm

index e433377..edd892a 100644 (file)
@@ -3687,7 +3687,7 @@ sub check_account_exp {
         $ctx->{account_renew_message} = '<div style="border:2px solid green;padding:5px;">Your account
         could only be temporarily renewed because your address changed. Please visit your nearest PINES
         library with your current proof of address to complete your account renewal.</div>';
-    } elsif (DateTime->today->add(days=>30) lt $ctx->{user}->expire_date) {
+    } elsif (DateTime->today->add(days=>29) lt $ctx->{user}->expire_date) {
         #expiration date is too far in future - don't show message
         $ctx->{account_renew_message} = '';
     } elsif ($ctx->{hasproblem} eq 1 or $ctx->{eligible_permgroup} eq 0) { #see other problems above