[Koha-bugs] [Bug 11580] returnBeforeExpiry and closed day
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 1 21:39:08 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11580
--- Comment #20 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I think the correct change is:
+ my $calendar = Koha::Calendar->new( branchcode => $branch );
+ if ( $calendar->is_holiday($datedue) ) {
+ # Don't return on a closed day
+ $datedue = $calendar->prev_open_day($datedue);
+ }
Because if expiry date is not a close day, the date due must be the expiry
date.
But then tests from t/db_dependent/Circulation/CalcDateDue.t are failing
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list