[Koha-cvs] CVS: koha/sec writeoff.pl,1.4,1.5

Andrew Arensburger arensb at users.sourceforge.net
Sat Oct 5 12:16:44 CEST 2002


Update of /cvsroot/koha/koha/sec
In directory usw-pr-cvs1:/tmp/cvs-serv31748/sec

Modified Files:
	writeoff.pl 
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.


Index: writeoff.pl
===================================================================
RCS file: /cvsroot/koha/koha/sec/writeoff.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** writeoff.pl	14 Aug 2002 18:12:54 -0000	1.4
--- writeoff.pl	5 Oct 2002 10:16:42 -0000	1.5
***************
*** 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