[Koha-cvs] CVS: koha/sec writeoff.pl,1.4,1.4.2.1
Andrew Arensburger
arensb at users.sourceforge.net
Fri Oct 4 04:45:43 CEST 2002
Update of /cvsroot/koha/koha/sec
In directory usw-pr-cvs1:/tmp/cvs-serv24201
Modified Files:
Tag: arensb-context
writeoff.pl
Log Message:
Use C4::Connect instead of C4::Database, C4::Connect->dbh instead
C4Connect.
Index: writeoff.pl
===================================================================
RCS file: /cvsroot/koha/koha/sec/writeoff.pl,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -C2 -r1.4 -r1.4.2.1
*** writeoff.pl 14 Aug 2002 18:12:54 -0000 1.4
--- writeoff.pl 4 Oct 2002 02:45:40 -0000 1.4.2.1
***************
*** 24,28 ****
use strict;
use CGI;
! use C4::Database;
use C4::Stats;
my $input=new CGI;
--- 24,28 ----
use strict;
use CGI;
! use C4::Context;
use C4::Stats;
my $input=new CGI;
***************
*** 67,71 ****
$user=~ s/Foxton/F/;
$user=~ s/Shannon/S/;
! my $dbh=C4Connect;
my $env;
my $query="Update accountlines set amountoutstanding=0 where ";
--- 67,71 ----
$user=~ s/Foxton/F/;
$user=~ s/Shannon/S/;
! my $dbh = C4::Context->dbh;
my $env;
my $query="Update accountlines set amountoutstanding=0 where ";
***************
*** 91,95 ****
$sth->finish;
# print $query;
- $dbh->disconnect;
UpdateStats($env,$user,'writeoff',$amount,'','','',$bornum);
}
--- 91,94 ----
More information about the Koha-cvs
mailing list