[Koha-bugs] [Bug 12847] Date comparisons in C4::Members::IssueSlip are broken

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 15 16:46:11 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12847

--- Comment #23 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Kyle,
I am not able to reproduce the issue, and looking at the cait's data:
 issuedate: '2015-04-15 16:16:14'
 lastreneweddate: NULL

I really don't understand how this code (C4::Members::IssueSlip)

2443         if ((substr $it->{'issuedate'}, 0, 10) eq $now || (substr
$it->{'lastreneweddate'}, 0, 10) eq $now) {     
2444             $it->{'now'} = 1;                                              
2445         }
2446         elsif ((substr $it->{'date_due'}, 0, 10) le $now) {                
2447             $it->{'overdue'} = 1;
2448         }

could set overdue :)

All what I know is that in 3.18.05.1, GetPendingIssues does some stuff with the
date_due using DateTime::Format::DateParse, which has been removed from master.

Anyway, the overdue flag is set in GetPendingIssues, why don't you remove all
the code around the date manipulations?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list