From 69a194c00b97ad1fac732821b55386aa895ffeaf Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Fri, 18 Mar 2022 16:14:37 -0400 Subject: [PATCH] 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 --- .../src/templates-bootstrap/opac/myopac/charges.tt2 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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 %] -- 2.11.0