@@ -, +, @@ calculate return date not on closed day (depending on useDaysMode) --- C4/Circulation.pm | 5 +++++ 1 file changed, 5 insertions(+) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -3643,6 +3643,11 @@ sub CalcDateDue { $datedue = $expiry_dt->clone->set_time_zone( C4::Context->tz ); } } + if ( C4::Context->preference('useDaysMode') ne 'Days' ) { + # Don't return on a closed day + my $calendar = Koha::Calendar->new( branchcode => $branch ); + $datedue = $calendar->prev_open_day( $datedue ); + } } return $datedue; --