Bugzilla – Attachment 48189 Details for
Bug 15845
Renewal date in circulation.pl is not always correct and not even used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15845: Renewal date in circulation.pl is not always correct and not even used
Bug-15845-Renewal-date-in-circulationpl-is-not-alw.patch (text/plain), 2.01 KB, created by
Marcel de Rooy
on 2016-02-17 15:37:36 UTC
(
hide
)
Description:
Bug 15845: Renewal date in circulation.pl is not always correct and not even used
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-02-17 15:37:36 UTC
Size:
2.01 KB
patch
obsolete
>From 778e8d027924afef47b7d1a865aa3a33e8da1fd0 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 17 Feb 2016 16:32:03 +0100 >Subject: [PATCH] Bug 15845: Renewal date in circulation.pl is not always > correct and not even used >Content-Type: text/plain; charset=utf-8 > >If you have a patron category with a hard renewal date, the enrolllment >period will be zero. You cannot calculate the renewal date as is done >in the script currently. > >Even more, the renewaldate template var is not even used. > >Test plan: >[1] Verify that checkin/checkout works as expected. >[2] Git grep on renewaldate >[3] Check the code in circulation.pl for "$renew" >--- > circ/circulation.pl | 8 -------- > 1 file changed, 8 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index e6ba9a2..5c80b05 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -279,13 +279,6 @@ if ($borrowernumber) { > my ( $today_year, $today_month, $today_day) = Today(); > my ($warning_year, $warning_month, $warning_day) = split /-/, $borrower->{'dateexpiry'}; > my ( $enrol_year, $enrol_month, $enrol_day) = split /-/, $borrower->{'dateenrolled'}; >- # Renew day is calculated by adding the enrolment period to today >- my ( $renew_year, $renew_month, $renew_day); >- if ($enrol_year*$enrol_month*$enrol_day>0) { >- ( $renew_year, $renew_month, $renew_day) = >- Add_Delta_YM( $enrol_year, $enrol_month, $enrol_day, >- 0 , $borrower->{'enrolmentperiod'}); >- } > # if the expiry date is before today ie they have expired > if ( !$borrower->{'dateexpiry'} || $warning_year*$warning_month*$warning_day==0 > || Date_to_Days($today_year, $today_month, $today_day ) >@@ -297,7 +290,6 @@ if ($borrowernumber) { > noissues => ($force_allow_issue) ? 0 : "1", > forceallow => $force_allow_issue, > expired => "1", >- renewaldate => "$renew_year-$renew_month-$renew_day", > ); > } > # check for NotifyBorrowerDeparture >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15845
:
48189
|
48266
|
48270
|
48271