From cf6bd4d982f14ec0dbf01c417a78743390850a77 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 Signed-off-by: Kyle M Hall --- .../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 ccb817ca97..81a18c9126 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 80814c3a80..e7c54f4f06 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.39.5