From 80a014374400769dd96a595d5c61055c3a77919d Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 24 Sep 2015 08:11:03 -0400 Subject: [PATCH] Bug 11622 [QA Follouwp] - Display payment block only if there is something to pay Signed-off-by: Jonathan Druart --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt index 7bf893c..a5723d7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt @@ -1,6 +1,7 @@ [% USE Koha %] [% USE KohaDates %] [% SET ENABLE_OPAC_PAYMENTS = Koha.Preference('EnablePayPalOpacPayments') %] +[% SET DISPLAY_PAYMENT_BLOCK = 0 %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your fines and charges @@ -93,6 +94,7 @@ [% IF ENABLE_OPAC_PAYMENTS %] [% IF ACCOUNT_LINE.amountoutstanding > 0 %] + [% SET DISPLAY_PAYMENT_BLOCK = 1 %] [% END %] @@ -132,7 +134,7 @@ - [% IF ENABLE_OPAC_PAYMENTS %] + [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %]