Lines 3799-3805
sub CalcDateDue {
Link Here
|
3799 |
my $calendar = Koha::DiscreteCalendar->new({ branchcode => $branch, days_mode => $daysmode }); |
3799 |
my $calendar = Koha::DiscreteCalendar->new({ branchcode => $branch, days_mode => $daysmode }); |
3800 |
if ( $calendar->is_holiday($datedue) ) { |
3800 |
if ( $calendar->is_holiday($datedue) ) { |
3801 |
# Don't return on a closed day |
3801 |
# Don't return on a closed day |
3802 |
$datedue = $calendar->prev_open_days( $datedue )->set(hour => 23, minute => 59); |
3802 |
$datedue = $calendar->prev_open_day( $datedue )->set(hour => 23, minute => 59); |
3803 |
} |
3803 |
} |
3804 |
} |
3804 |
} |
3805 |
} |
3805 |
} |
3806 |
- |
|
|