From 0eff486041de1b37db73f21a4771593c4993990e Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 18 Apr 2014 14:48:30 +0000 Subject: [PATCH] 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 --- .../intranet-tmpl/prog/en/modules/members/moremember-print.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt index c9f4c855c7..eee5aeff4d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt @@ -91,7 +91,7 @@ [% END %] -[% IF ( accounts ) %] +[% IF ( accounts && ( totaldue != '0.00' ) ) %] @@ -101,6 +101,7 @@ [% FOREACH account IN accounts %] + [% NEXT IF account.amountoutstanding == '0.00' %]
Account fines and payments
Outstanding
[% IF ( account.itemnumber ) %][% END %]