From: Terran McCanna Date: Wed, 13 Jul 2022 20:12:36 +0000 (-0400) Subject: LP1981628 Follow up to Stripe payment intents bug X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7fc8f1135211485ea97c8463c75fdf7ea5351109;p=Evergreen.git LP1981628 Follow up to Stripe payment intents bug The bug fix for 1965579 only resolved the negative bills problem for grocery bills. This follow up resolves the problem for circulation bills as well. Signed-off-by: Terran McCanna Signed-off-by: Jason Etheridge Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 index 653740ded0..1a4a671b51 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 @@ -54,6 +54,7 @@ + [% c = 0; neg_or_zero = 0; %] [% FOR f IN ctx.fines.circulation; attrs = {marc_xml => f.marc_xml}; IF f.marc_xml; @@ -75,6 +76,7 @@ [% money(f.xact.balance_owed) %] + [% IF f.xact.balance_owed <= 0; neg_or_zero = neg_or_zero + 1; END %] @@ -164,7 +166,6 @@ - [% c = 0; neg_or_zero = 0; %] [% FOR f IN ctx.fines.grocery %] [% c = c + 1; %] diff --git a/Open-ILS/src/templates/opac/myopac/main.tt2 b/Open-ILS/src/templates/opac/myopac/main.tt2 index 87a3b3f85b..30e00ae91c 100644 --- a/Open-ILS/src/templates/opac/myopac/main.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main.tt2 @@ -55,6 +55,7 @@ + [% neg_or_zero = 0; %] [% FOR f IN ctx.fines.circulation; attrs = {marc_xml => f.marc_xml}; IF f.marc_xml; @@ -74,6 +75,7 @@ [% money(f.xact.balance_owed)%] + [% IF f.xact.balance_owed <= 0; neg_or_zero = neg_or_zero + 1; END %] @@ -163,7 +165,6 @@ - [% neg_or_zero = 0; %] [% FOR f IN ctx.fines.grocery %]