[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4/Circulation Circ2.pm [rel_2_2]
From: |
Chris Cormack |
Subject: |
[Koha-cvs] koha/C4/Circulation Circ2.pm [rel_2_2] |
Date: |
Mon, 26 Feb 2007 22:23:47 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Chris Cormack <rangi> 07/02/26 22:23:47
Modified files:
C4/Circulation : Circ2.pm
Log message:
Fixing and error that was causing the loan length to be effectively
doubled
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Circulation/Circ2.pm?cvsroot=koha&only_with_tag=rel_2_2&r1=1.87.2.21&r2=1.87.2.22
Patches:
Index: Circ2.pm
===================================================================
RCS file: /sources/koha/koha/C4/Circulation/Circ2.pm,v
retrieving revision 1.87.2.21
retrieving revision 1.87.2.22
diff -u -b -r1.87.2.21 -r1.87.2.22
--- Circ2.pm 13 Feb 2007 09:59:22 -0000 1.87.2.21
+++ Circ2.pm 26 Feb 2007 22:23:47 -0000 1.87.2.22
@@ -3,7 +3,7 @@
package C4::Circulation::Circ2;
-# $Id: Circ2.pm,v 1.87.2.21 2007/02/13 09:59:22 kados Exp $
+# $Id: Circ2.pm,v 1.87.2.22 2007/02/26 22:23:47 rangi Exp $
#package to deal with Returns
#written 3/11/99 by address@hidden
@@ -900,8 +900,8 @@
# Record in the database the fact that the book was issued.
my $sth=$dbh->prepare("insert into issues (borrowernumber,
itemnumber, date_due, branchcode) values (?,?,?,?)");
my $loanlength =
getLoanLength($borrower->{'categorycode'},$iteminformation->{'itemtype'},$borrower->{'branchcode'});
- my $datedue=time+($loanlength)*86400;
- my @datearr = localtime($datedue);
+ # addDate below works out the date_due
+ my @datearr = localtime();
my $dateduef =
(1900+$datearr[5])."-".($datearr[4]+1)."-".$datearr[3];
# now calling addDate() from Calendar.pm (Tumer's holiday
module).