From f5b944423b30dc406afcdb67741127a377bd43ef Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 29 Aug 2014 09:46:16 -0400 Subject: [PATCH] Bug 12847 [Follwup] - Remove code that calculates "overdue" key as C4::Members::GetPendingIssues already creates it Signed-off-by: Laurie McKee --- C4/Members.pm | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index c3a8c72..6b7bb42 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -2436,15 +2436,10 @@ sub IssueSlip { $dt_issuedate->truncate( to => 'day' ); my $dt_lastreneweddate = dt_from_string( $it->{'lastreneweddate'} ); $dt_lastreneweddate->truncate( to => 'day' ); - my $dt_date_due = dt_from_string( $it->{'date_due'} ); - $dt_date_due->truncate( to => 'day' ); if ( $dt_issuedate == $now || $dt_lastreneweddate == $now ) { $it->{'now'} = 1; } - elsif ( $dt_date_due < $now ) { - $it->{'overdue'} = 1; - } # Recreate date_due as DateTime because we truncated the hours $it->{'date_due'} = output_pref( dt_from_string( $it->{'date_due'} ) ); @@ -2469,7 +2464,7 @@ sub IssueSlip { 'biblio' => $_, 'items' => $_, 'issues' => $_, - }, grep { !$_->{'overdue'} } @issues ], + }, grep { !$_->{'overdue'} } @issues ], # overdue key created by GetPendingIssues 'overdue' => [ map { 'biblio' => $_, -- 1.7.2.5