From 47fb61ad9aba03674f6c0bf7b523b93ce5ef0f69 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 6 Jul 2015 09:43:34 -0400 Subject: [PATCH] Bug 14497 - Add warning to patron details page if patron's fines exceed noissuescharge Some librarians have requested that the same warning on the check out page be placed on the patron details page if a patron's fines exceed the system preference noissuescharge. Test Plan: 1) Apply this patch 2) Find or create a patron who's fines exceed noissuescharge 3) Browse to that patron's details ( moremember.pl ) 4) You should see a warning near the top of the page with links to the patron's account page and the pay fines page Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 11 +++++++++++ members/moremember.pl | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 97e547d..7adbda9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -168,6 +168,17 @@ function validate1(date) { [% ELSE %] [% IF ( was_renewed ) %]
Patron's account has been renewed until [% dateexpiry | $KohaDates %]
[% END %] + [% IF fines %] + [% SET NoIssuesCharge = Koha.Preference('noissuescharge') %] + [% IF NoIssuesCharge && fines > NoIssuesCharge %] +
  • + Fees & Charges: Patron has Outstanding fees & charges[% IF ( chargesamount ) %] of [% chargesamount %][% END %]. + Checkouts are BLOCKED because fine balance is OVER THE LIMIT. + Make payment +
  • + [% END %] + [% END %] + [% IF ( flagged ) %]
      diff --git a/members/moremember.pl b/members/moremember.pl index 688215b..3b9ff94 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -115,7 +115,7 @@ my $error = $input->param('error'); $template->param( error => $error ) if ( $error ); my ( $od, $issue, $fines ) = GetMemberIssuesAndFines($borrowernumber); -$template->param( issuecount => $issue ); +$template->param( issuecount => $issue, fines => $fines ); my $data = GetMember( 'borrowernumber' => $borrowernumber ); -- 2.1.4