Bugzilla – Attachment 3196 Details for
Bug 1962
Add fine notification during check-in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-Bug-1962-Add-fine-notification-during-check-in.patch (text/plain), 2.31 KB, created by
Katrin Fischer
on 2011-02-22 21:06:00 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-02-22 21:06:00 UTC
Size:
2.31 KB
patch
obsolete
>From 6f8704fe6262600b44ad984162c29ae99d0bee22 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Tue, 22 Feb 2011 21:53:09 +0100 >Subject: [PATCH] Bug 1962: Add fine notification during check-in >Content-Type: text/plain; charset="utf-8" > >Original patch submitted by dswhite42@yahoo.com > >Reformatted to apply cleanly. >Changed alert message during check-in to message used >on borrower account checkout page. >--- > circ/returns.pl | 7 +++++++ > .../prog/en/modules/circ/returns.tmpl | 9 +++++++++ > 2 files changed, 16 insertions(+), 0 deletions(-) > >diff --git a/circ/returns.pl b/circ/returns.pl >index 2aac76a..c05277c 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -241,6 +241,13 @@ if ($barcode) { > $input{duedate} = $duedate; > $input{return_overdue} = 1 if ($duedate and $duedate lt $today->output('iso')); > push( @inputloop, \%input ); >+ >+ my ( $od, $issue, $fines ) = GetMemberIssuesAndFines( $borrower->{'borrowernumber'} ); >+ if ($fines) { >+ $template->param( fines => sprintf("%.2f",$fines) ); >+ $template->param( fineborrowernumber => $borrower->{'borrowernumber'} ); >+ } >+ > } > elsif ( !$messages->{'BadBarcode'} ) { > $input{duedate} = 0; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl >index ba8d117..724a3e9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl >@@ -58,6 +58,15 @@ function Dopop(link) { > <div class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to <!-- TMPL_VAR NAME="collectionBranch" --></div> > <!-- /TMPL_IF --> > >+<!-- Patron has fines --> >+<!-- TMPL_IF NAME="fines" --> >+ <div class="dialog alert"> >+ <h3>Patron has outstanding fines of <!-- TMPL_VAR NAME="fines" -->.</h3> >+ <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR NAME="fineborrowernumber" -->">Make payment</a>.</p> >+ </div> >+<!-- /TMPL_IF --> >+ >+ > <!-- TMPL_IF NAME="wrongbranch" --> > <div class="dialog alert"><h3>Cannot Check In</h3><p>This item must be checked in at its home library. <strong>NOT CHECKED IN</strong></p> > </div> >-- >1.7.1 >
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 1962
:
439
| 3196 |
3254
|
3285
|
3438