From: Terran McCanna Date: Fri, 18 Mar 2022 20:14:37 +0000 (-0400) Subject: Temp fix for Stripe bug when there are negative bills X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ccee3dc4e026b73909ac56b168c7c276e488d189;p=evergreen%2Fpines.git Temp fix for Stripe bug when there are negative bills This just checks the billing rows and if any of them are negative it hides the payment buttons and directs them to staff. Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 index 451fc0c170..ca9e3d8670 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 @@ -169,6 +169,7 @@ [% c = 0; %] + [% neg = 0; %] [% FOR f IN ctx.fines.grocery %] [% c = c + 1; %] @@ -183,6 +184,7 @@ Amount Owed [% money(f.xact.balance_owed) %] + [% IF f.xact.balance_owed < 0; neg = neg + 1; END %] @@ -216,11 +218,17 @@
[% l('You have no current fines.') %]
[% ELSIF myopac_cc_allowed %] -
- - -
+ + [% IF neg > 0 %] + There are negative bills on your account that must be resolved before you are able to make + a payment. Please contact your library for assistance. + [% ELSE %] +
+ + +
+ [% END %] [% END %] [% IF myopac_cc_allowed %]