@@ -, +, @@ guarantees fines --- .../bootstrap/en/includes/account-table.inc | 77 +++++++++++-------- 1 file changed, 44 insertions(+), 33 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc @@ -1,7 +1,7 @@

Charges

+
[% IF ( ACCOUNT_LINES ) %] - @@ -79,39 +79,7 @@
- [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] - - [% END %] -
[% ELSE %]

You have no fines or charges

[% END %] @@ -122,6 +90,7 @@ + [% IF ENABLE_OPAC_PAYMENTS %][% END %] @@ -134,6 +103,15 @@ [% FOREACH a IN r.accountlines %] [% SET account_sum = account_sum + a.amountoutstanding %] + [% IF ENABLE_OPAC_PAYMENTS %] + + [% END %]
 Date Description Fine amount
+ [% IF a.amountoutstanding > 0 %] + [% SET DISPLAY_PAYMENT_BLOCK = 1 %] + + + [% END %] + [% a.date | $KohaDates %] [% PROCESS account_type_description account=a %] @@ -154,7 +132,40 @@
+ [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] + + [% END %] [% END %] + [%- BLOCK account_type_description -%] [%- SWITCH account.accounttype -%] --