Bug 11869: (follow-up) only display active fines

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>
This commit is contained in:
Galen Charlton 2014-04-18 14:48:30 +00:00
parent fcc43dfd25
commit 0eff486041

View file

@ -91,7 +91,7 @@
</table>
[% END %]
[% IF ( accounts ) %]
[% IF ( accounts && ( totaldue != '0.00' ) ) %]
<table>
<caption>Account fines and payments</caption>
<tr>
@ -101,6 +101,7 @@
<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 %]