[Bug 11580] returnBeforeExpiry and closed day
1 Sep
2017
1 Sep
'17
9:39 p.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11580 --- Comment #20 from Jonathan Druart <jonathan.druart@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.
3239
Age (days ago)
3239
Last active (days ago)
0 comments
1 participants
participants (1)
-
bugzilla-daemon@bugs.koha-community.org