From 38b59b7b535fced58cdcb14533d5d79d48abfabd Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 19 Feb 2011 19:21:56 -0500 Subject: [PATCH] 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 Signed-off-by: Chris Cormack --- circ/returns.pl | 7 +++++++ .../intranet-tmpl/prog/en/modules/circ/returns.tmpl | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/circ/returns.pl b/circ/returns.pl index 2aac76a6e3..c05277c3d7 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 ba8d117df9..724a3e9cac 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) {
This item is part of a Rotating Collection and needs to be Transferred to
+ + +
+

Patron has outstanding fines of .

+

">Make payment.

+
+ + +

Cannot Check In

This item must be checked in at its home library. NOT CHECKED IN

-- 2.20.1