From cc6e0d346760ffcd68a1ee9fbb097dbdea7673ce 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 Patch ammended post sign-off Signed-off-by: Sally Healey Signed-off-by: Jonathan Druart --- .../prog/en/modules/members/moremember.tt | 21 +++++++++++++++++++++ members/moremember.pl | 2 +- 2 files changed, 22 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 6a4add0..9f52f2a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -173,6 +173,27 @@ 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 %] + . + [% IF !Koha.Preference('AllowFineOverride') %] + Checkouts are BLOCKED because fine balance is OVER THE LIMIT. + [% END %] + Make payment + or + Pay all fines
  • + + [% END %] + [% END %] + [% IF ( flagged ) %]
      diff --git a/members/moremember.pl b/members/moremember.pl index 7c962a4..93354e4 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -116,7 +116,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.7.0