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

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

Return to bug 6796