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:
parent
fcc43dfd25
commit
0eff486041
1 changed files with 2 additions and 1 deletions
|
@ -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 %]&itemnumber=[% account.itemnumber %]">[% END %]
|
||||
|
|
Loading…
Reference in a new issue