koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha/sec writeoff.pl,1.4,1.5
Date: Sat, 05 Oct 2002 03:16:44 -0700

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 ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]