Bug 1962: Add fine notification during check-in

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.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Katrin Fischer 2011-02-19 19:21:56 -05:00 committed by Chris Cormack
parent b0f60221f4
commit 38b59b7b53
2 changed files with 16 additions and 0 deletions

View File

@ -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;

View File

@ -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>