https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18855

--- Comment #35 from Marcel de Rooy <[email protected]> ---
Why not remove:
+    # if the issue changed before the script got to it, then pass on it.
+    my $issue = Koha::Checkouts->find({ issue_id => $overdue->{issue_id} });
+    next if ( ! $issue );
+
+    my $datedue = dt_from_string( $overdue->{date_due} );
+    next unless $issue->is_overdue( $datedue );


And keep:
-    my $datedue = dt_from_string( $overdue->{date_due} );
-    if ( DateTime->compare( $datedue, $today ) == 1 ) {
-        next;    # not overdue
-    }

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to