Bug 1962: Follow-up: Add fine notification during check-in
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 7 Mar 2011 21:30:21 +0000 (15:30 -0600)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 11 Mar 2011 19:32:34 +0000 (08:32 +1300)
Don't show message when patron has no fines.

Signed-off-by: Liz Rea <lrea@nekls.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
circ/returns.pl

index c05277c..40706a2 100755 (executable)
@@ -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'} );
         }