Bug 11869: (follow-up) only display active fines
authorGalen Charlton <gmc@esilibrary.com>
Fri, 18 Apr 2014 14:48:30 +0000 (14:48 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 18 Apr 2014 14:55:36 +0000 (14:55 +0000)
This patch modifies the patron summary printout so that
only fines with an outstanding balance (either positive
or negative) are displayed.  Also, the entire fines section
is displayed only if there is a non-zero balance.

This is consistent with the logic for displaying the loans
and hold requests tables, and avoids cluttering the summary
with historical fines.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt

index c9f4c85..eee5aef 100644 (file)
@@ -91,7 +91,7 @@
 </table>
 [% END %]
 
-[% IF ( accounts ) %]
+[% IF ( accounts && ( totaldue != '0.00' ) ) %]
 <table>
     <caption>Account fines and payments</caption>
     <tr>
         <th>Outstanding</th>
     </tr>
     [% FOREACH account IN accounts %]
+    [% NEXT IF account.amountoutstanding == '0.00' %]
     <tr>
         <td>
             [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% END %]