[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/circ circulation.pl [dev_week]
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] koha/circ circulation.pl [dev_week] |
Date: |
Sat, 26 Aug 2006 14:02:57 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Joshua Ferraro <kados> 06/08/26 14:02:57
Modified files:
circ : circulation.pl
Log message:
patron renewal button should be calculated from 'today' rather than
last expiry date.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/circ/circulation.pl?cvsroot=koha&only_with_tag=dev_week&r1=1.81.2.14.2.3&r2=1.81.2.14.2.4
Patches:
Index: circulation.pl
===================================================================
RCS file: /sources/koha/koha/circ/circulation.pl,v
retrieving revision 1.81.2.14.2.3
retrieving revision 1.81.2.14.2.4
diff -u -b -r1.81.2.14.2.3 -r1.81.2.14.2.4
--- circulation.pl 13 Jul 2006 21:09:25 -0000 1.81.2.14.2.3
+++ circulation.pl 26 Aug 2006 14:02:57 -0000 1.81.2.14.2.4
@@ -127,7 +127,7 @@
#warn $borrower->{'expiry'};
my $warningdate = DateCalc($borrower->{'expiry'},"-
".C4::Context->preference('NotifyBorrowerDeparture')." days");
my $offset = '+ '.$borrower->{'enrolmentperiod'}.' years';
- my $renewaldate = DateCalc($warningdate, $offset);
+ my $renewaldate = DateCalc(ParseDate("today"), $offset);
$renewaldate = UnixDate($renewaldate,'%Y-%m-%d');
my $warning=Date_Cmp(ParseDate("today"),$warningdate);
if ($warning>0){
- [Koha-cvs] koha/circ circulation.pl [dev_week],
Joshua Ferraro <=