From: Terran McCanna Date: Tue, 27 Dec 2022 18:05:33 +0000 (-0500) Subject: Online Renewal - tweak expire date comparison X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2010162052d6b9ccfcc47881f6ccef5307814b0f;p=evergreen%2Fpines.git Online Renewal - tweak expire date comparison 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 e433377295..edd892a207 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -3687,7 +3687,7 @@ sub check_account_exp { $ctx->{account_renew_message} = '
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.
'; - } 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