[Koha-cvs] koha/C4/Circulation Circ2.pm [dev_week]

Ryan Higgins rch at liblime.com
Tue Jan 23 08:28:30 CET 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Ryan Higgins <rych>	07/01/23 07:28:30

Modified files:
	C4/Circulation : Circ2.pm 

Log message:
	Allow noissuescharge syspref

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Circulation/Circ2.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.87.2.14.2.11&r2=1.87.2.14.2.12

Patches:
Index: Circ2.pm
===================================================================
RCS file: /sources/koha/koha/C4/Circulation/Circ2.pm,v
retrieving revision 1.87.2.14.2.11
retrieving revision 1.87.2.14.2.12
diff -u -b -r1.87.2.14.2.11 -r1.87.2.14.2.12
--- Circ2.pm	5 Dec 2006 20:36:17 -0000	1.87.2.14.2.11
+++ Circ2.pm	23 Jan 2007 07:28:30 -0000	1.87.2.14.2.12
@@ -3,7 +3,7 @@
 
 package C4::Circulation::Circ2;
 
-# $Id: Circ2.pm,v 1.87.2.14.2.11 2006/12/05 20:36:17 kados Exp $
+# $Id: Circ2.pm,v 1.87.2.14.2.12 2007/01/23 07:28:30 rych Exp $
 
 #package to deal with Returns
 #written 3/11/99 by olwen at katipo.co.nz
@@ -738,14 +738,13 @@
 
 # DEBTS
 	my $amount = checkaccount($env,$borrower->{'borrowernumber'}, $dbh,$duedate);
-	my $noissuescharge = C4::Context->preference("noissuescharge");
-	    
-	if ($amount >$noissuescharge) {                                                                           
+	my $noissuescharge = ( C4::Context->preference("noissuescharge") ) ?  C4::Context->preference("noissuescharge") : 0;
+	if ($amount > $noissuescharge) {                                                                           
 	    $issuingimpossible{DEBT} = sprintf("%.2f",$amount);
         }                                                      
-	elsif ($amount > 0 && $amount <=$noissuescharge) {                                                        
-	    $needsconfirmation{DEBT} = sprintf("%.2f",$amount);                                                              
-	} 
+#	elsif ($amount > 0 && $amount <= $noissuescharge) {                                                        
+#	    $needsconfirmation{DEBT} = sprintf("%.2f",$amount);                                                              
+#	} 
 
 
 #





More information about the Koha-cvs mailing list