[Koha-cvs] koha/circ circulation.pl [rel_2_2]

Joshua Ferraro jmf at kados.org
Sat Aug 26 16:03:59 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Joshua Ferraro <kados>	06/08/26 14:03:59

Modified files:
	circ           : circulation.pl 

Log message:
	rewew patron button should be calculated from today, not original expiry
	date.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/circ/circulation.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.81.2.15&r2=1.81.2.16

Patches:
Index: circulation.pl
===================================================================
RCS file: /sources/koha/koha/circ/circulation.pl,v
retrieving revision 1.81.2.15
retrieving revision 1.81.2.16
diff -u -b -r1.81.2.15 -r1.81.2.16
--- circulation.pl	20 Jun 2006 16:21:43 -0000	1.81.2.15
+++ circulation.pl	26 Aug 2006 14:03:58 -0000	1.81.2.16
@@ -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){ 





More information about the Koha-cvs mailing list