koha-cvs
[Top][All Lists]
Advanced

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

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


From: Kyle Hall
Subject: [Koha-cvs] koha/circ circulation.pl [dev_week]
Date: Fri, 05 Jan 2007 15:50:26 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         dev_week
Changes by:     Kyle Hall <kylemhall>   07/01/05 15:50:26

Modified files:
        circ           : circulation.pl 

Log message:
        

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.12&r2=1.81.2.14.2.13

Patches:
Index: circulation.pl
===================================================================
RCS file: /sources/koha/koha/circ/circulation.pl,v
retrieving revision 1.81.2.14.2.12
retrieving revision 1.81.2.14.2.13
diff -u -b -r1.81.2.14.2.12 -r1.81.2.14.2.13
--- circulation.pl      5 Jan 2007 15:47:24 -0000       1.81.2.14.2.12
+++ circulation.pl      5 Jan 2007 15:50:26 -0000       1.81.2.14.2.13
@@ -191,24 +191,11 @@
 if ($borrowernumber) {
        $borrower = getpatroninformation(\%env,$borrowernumber,0);
        my ($od,$issue,$fines)=borrdata2(\%env,$borrowernumber);
-       # Warningdate is the date that the warning starts appearing
-       my ($today_year,$today_month,$today_day) = Today();
-       my ($warning_year,$warning_month,$warning_day) = split /-/, 
$borrower->{'expiry'};
-
-       # Renew day is calculated by adding the enrolment period to today
-       my ($renew_year,$renew_month,$renew_day) = 
Add_Delta_YM($today_year,$today_month,$today_day, 
$borrower->{'enrolmentperiod'},0); 
-       
-       # if the expiry date is before today
-       if (Date_to_Days($today_year,$today_month,$today_day) > 
Date_to_Days($warning_year,$warning_month,$warning_day)) {
-
-               #borrowercard expired or nearly expired, warn the librarian
-               $template->param(       flagged=>"1",
-                                                       warndeparture=>"1",
-                                                       
renewaldate=>"$renew_year-$renew_month-$renew_day");
-       }
-       $template->param(               overduecount => $od,
+       $template->param(
+               overduecount => $od,
                                                        issuecount => $issue,
-                                                       finetotal => $fines);
+               finetotal => $fines
+       );
 }
 
 




reply via email to

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