[Koha-cvs] koha/members pay.pl [rel_3_0]

Bruno Toumi btoumi at ouestprovence.fr
Fri Nov 24 17:10:38 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Bruno Toumi <btoumi>	06/11/24 16:10:38

Modified files:
	members        : pay.pl 

Log message:
	add possibility to use write off option  for more accounttype 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/members/pay.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.4.2.3&r2=1.4.2.4

Patches:
Index: pay.pl
===================================================================
RCS file: /sources/koha/koha/members/pay.pl,v
retrieving revision 1.4.2.3
retrieving revision 1.4.2.4
diff -u -b -r1.4.2.3 -r1.4.2.4
--- pay.pl	24 Nov 2006 13:56:19 -0000	1.4.2.3
+++ pay.pl	24 Nov 2006 16:10:38 -0000	1.4.2.4
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: pay.pl,v 1.4.2.3 2006/11/24 13:56:19 btoumi Exp $
+# $Id: pay.pl,v 1.4.2.4 2006/11/24 16:10:38 btoumi Exp $
 
 # written 11/1/2000 by chris at katipo.oc.nz
 # part of the koha library system, script to facilitate paying off fines
@@ -173,7 +173,7 @@
 	my $user=$input->remote_user;
 	my $dbh = C4::Context->dbh;
 	my $env;
-	my $sth=$dbh->prepare("Update accountlines set amountoutstanding=0 where (accounttype='Res' or accounttype='FU' or accounttype ='IP' OR accounttype='CH' OR accounttype='RE' OR accounttype='RL') and accountno=? and borrowernumber=?");
+	my $sth=$dbh->prepare("Update accountlines set amountoutstanding=0 where (accounttype='Res' OR accounttype='FU' OR accounttype ='IP' OR accounttype='CH' OR accounttype='N' OR accounttype='F' OR accounttype='A' OR accounttype='M' OR accounttype='L' OR accounttype='RE' OR accounttype='RL') and accountno=? and borrowernumber=?");
         $sth->execute($accountnum,$borrowernumber);
       	$sth->finish;
 	$sth=$dbh->prepare("select max(accountno) from accountlines");





More information about the Koha-cvs mailing list