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

(-)a/Koha/Checkouts.pm (-3 / +9 lines)
Lines 48-55 sub calculate_dropbox_date { Link Here
48
    my $userenv    = C4::Context->userenv;
48
    my $userenv    = C4::Context->userenv;
49
    my $branchcode = $userenv->{branch} // q{};
49
    my $branchcode = $userenv->{branch} // q{};
50
50
51
    my $calendar = Koha::Calendar->new( branchcode => $branchcode );
51
    my $useDaysMode_value = Koha::CirculationRules->get_useDaysMode_effective_value(
52
    my $today        = dt_from_string();
52
        {
53
            categorycode => undef,
54
            itemtype     => undef,
55
            branchcode   => $branchcode,
56
        }
57
    );
58
    my $calendar     = Koha::Calendar->new( branchcode => $branchcode, days_mode => $useDaysMode_value );
59
    my $today        = dt_from_string;
53
    my $dropbox_date = $calendar->addDate( $today, -1 );
60
    my $dropbox_date = $calendar->addDate( $today, -1 );
54
61
55
    return $dropbox_date;
62
    return $dropbox_date;
56
- 

Return to bug 24159