[Koha-cvs] CVS: koha pay.pl,1.4,1.4.2.1
Andrew Arensburger
arensb at users.sourceforge.net
Fri Oct 4 04:21:20 CEST 2002
Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv17875
Modified Files:
Tag: arensb-context
pay.pl
Log Message:
Use C4::Connect instead of C4::Database, C4::Connect->dbh instead
C4Connect.
Index: pay.pl
===================================================================
RCS file: /cvsroot/koha/koha/pay.pl,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -C2 -r1.4 -r1.4.2.1
*** pay.pl 14 Aug 2002 18:12:51 -0000 1.4
--- pay.pl 4 Oct 2002 02:21:18 -0000 1.4.2.1
***************
*** 23,33 ****
use strict;
use C4::Output;
use CGI;
use C4::Search;
use C4::Accounts2;
-
- use C4::Database;
use C4::Stats;
my $input=new CGI;
--- 23,33 ----
use strict;
+ use C4::Context;
use C4::Output;
use CGI;
use C4::Search;
use C4::Accounts2;
use C4::Stats;
+
my $input=new CGI;
***************
*** 179,183 ****
$user=~ s/Foxton/F/;
$user=~ s/Shannon/S/;
! my $dbh=C4Connect;
my $env;
my $query="Update accountlines set amountoutstanding=0 where ";
--- 179,183 ----
$user=~ s/Foxton/F/;
$user=~ s/Shannon/S/;
! my $dbh = C4::Context->dbh;
my $env;
my $query="Update accountlines set amountoutstanding=0 where ";
***************
*** 203,207 ****
$sth->finish;
# print $query;
- $dbh->disconnect;
UpdateStats($env,$user,'writeoff',$amount,'','','',$bornum);
}
--- 203,206 ----
More information about the Koha-cvs
mailing list