[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/misc fines2.pl,1.6,1.6.2.1
From: |
Andrew Arensburger |
Subject: |
[Koha-cvs] CVS: koha/misc fines2.pl,1.6,1.6.2.1 |
Date: |
Thu, 03 Oct 2002 19:44:50 -0700 |
Update of /cvsroot/koha/koha/misc
In directory usw-pr-cvs1:/tmp/cvs-serv23818
Modified Files:
Tag: arensb-context
fines2.pl
Log Message:
Use C4::Connect instead of C4::Database, C4::Connect->dbh instead
C4Connect.
Index: fines2.pl
===================================================================
RCS file: /cvsroot/koha/koha/misc/fines2.pl,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -r1.6 -r1.6.2.1
*** fines2.pl 14 Aug 2002 18:12:54 -0000 1.6
--- fines2.pl 4 Oct 2002 02:44:48 -0000 1.6.2.1
***************
*** 27,31 ****
# Suite 330, Boston, MA 02111-1307 USA
! use C4::Database;
use C4::Search;
use C4::Circulation::Circ2;
--- 27,31 ----
# Suite 330, Boston, MA 02111-1307 USA
! use C4::Context;
use C4::Search;
use C4::Circulation::Circ2;
***************
*** 106,110 ****
# separate function
#
! my $dbh=C4Connect;
my $query="Select * from borrowers where
borrowernumber='$borrower->{'guarantor'}'";
my $sth=$dbh->prepare($query);
--- 106,110 ----
# separate function
#
! my $dbh = C4::Context->dbh;
my $query="Select * from borrowers where
borrowernumber='$borrower->{'guarantor'}'";
my $sth=$dbh->prepare($query);
***************
*** 112,116 ****
my $tdata=$sth->fetchrow_hashref;
$sth->finish;
- $dbh->disconnect;
$borrower->{'phone'}=$tdata->{'phone'};
}
--- 112,115 ----
***************
*** 128,132 ****
if ($borrower->{'cardnumber'} ne ''){
my $cost=ReplacementCost($data->[$i]->{'itemnumber'});
! my $dbh=C4Connect;
my $env;
my
$accountno=C4::Circulation::Circ2::getnextacctno($env,$data->[$i]->{'borrowernumber'},$dbh);
--- 127,131 ----
if ($borrower->{'cardnumber'} ne ''){
my $cost=ReplacementCost($data->[$i]->{'itemnumber'});
! my $dbh = C4::Context->dbh;
my $env;
my
$accountno=C4::Circulation::Circ2::getnextacctno($env,$data->[$i]->{'borrowernumber'},$dbh);
***************
*** 153,157 ****
#
}
- $dbh->disconnect;
}
}
--- 152,155 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/misc fines2.pl,1.6,1.6.2.1,
Andrew Arensburger <=