[Koha-patches] [PATCH] [SIGNED-OFF] Bug 1962: Follow-up: Add fine notification during check-in

Nicole C. Engard nengard at bywatersolutions.com
Mon Mar 7 20:14:59 CET 2011


From: Katrin Fischer <Katrin.Fischer.83 at web.de>

Don't show message when patron has no fines.

Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
 circ/returns.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/circ/returns.pl b/circ/returns.pl
index c05277c..40706a2 100755
--- a/circ/returns.pl
+++ b/circ/returns.pl
@@ -243,7 +243,7 @@ if ($barcode) {
         push( @inputloop, \%input );
 
         my ( $od, $issue, $fines ) = GetMemberIssuesAndFines( $borrower->{'borrowernumber'} );
-        if ($fines) {
+        if ($fines > 0) {
             $template->param( fines => sprintf("%.2f",$fines) );
             $template->param( fineborrowernumber => $borrower->{'borrowernumber'} );
         }
-- 
1.7.2.3



More information about the Koha-patches mailing list