View | Details | Raw Unified | Return to bug 6796
Collapse All | Expand All

(-)a/C4/Circulation.pm (-2 / +4 lines)
Lines 3893-3899 sub CalcDateDue { Link Here
3893
    # starter vars so don't do calculations directly to $datedue
3893
    # starter vars so don't do calculations directly to $datedue
3894
    my $potential_datedue = $datedue->clone;
3894
    my $potential_datedue = $datedue->clone;
3895
    my $library_close = $datedue->clone;
3895
    my $library_close = $datedue->clone;
3896
    my $dayofweek = $datedue->local_day_of_week - 1;
3896
    my $dayofweek = $datedue->day_of_week - 1;
3897
    my $tomorrow_dayofweek = $dayofweek + 1;
3898
    # If it's Sunday and tomorrow would be == 7, make tomorrow 0 (Days are stored as 0-6)
3899
    if ( $tomorrow_dayofweek > 6 ) { $tomorrow_dayofweek = 0; }
3897
    my $todayhours = Koha::Library::Hours->find({ library_id => $branch, day => $dayofweek });
3900
    my $todayhours = Koha::Library::Hours->find({ library_id => $branch, day => $dayofweek });
3898
    my @close = undef;
3901
    my @close = undef;
3899
    my $tomorrowhours = Koha::Library::Hours->find({ library_id => $branch, day => $dayofweek+1 }); # get open hours of next day
3902
    my $tomorrowhours = Koha::Library::Hours->find({ library_id => $branch, day => $dayofweek+1 }); # get open hours of next day
3900
- 

Return to bug 6796