Bugzilla – Attachment 40806 Details for
Bug 14497
Add warning to patron details page if patron's fines exceed noissuescharge
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14497 - Add warning to patron details page if patron's fines exceed noissuescharge
Bug-14497---Add-warning-to-patron-details-page-if-.patch (text/plain), 2.65 KB, created by
Kyle M Hall (khall)
on 2015-07-06 13:47:28 UTC
(
hide
)
Description:
Bug 14497 - Add warning to patron details page if patron's fines exceed noissuescharge
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-07-06 13:47:28 UTC
Size:
2.65 KB
patch
obsolete
>From 9e11fa5950f106b7e58fd0c2d5d4033fc69d8566 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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 >--- > .../prog/en/modules/members/moremember.tt | 11 +++++++++++ > members/moremember.pl | 2 +- > 2 files changed, 12 insertions(+), 1 deletions(-) > >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 e3ca832..e0e0852 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 ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %] > >+ [% IF fines %] >+ [% SET NoIssuesCharge = Koha.Preference('noissuescharge') %] >+ [% IF NoIssuesCharge && fines > NoIssuesCharge %] >+ <li> >+ <span class="circ-hlt">Fees & Charges:</span> Patron has <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Outstanding fees & charges[% IF ( chargesamount ) %] of [% chargesamount %][% END %]</a>. >+ Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>. >+ <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a> >+ </li> >+ [% END %] >+ [% END %] >+ > [% IF ( flagged ) %] > <div id="circmessages" class="circmessage attention"> > <ul> >diff --git a/members/moremember.pl b/members/moremember.pl >index 6a5adcc..95ce4de 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 ); > >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14497
:
40806
|
45127
|
50396
|
50431
|
50461
|
50718
|
50748
|
50749