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

(-)a/circ/circulation.pl (-1 / +1 lines)
Lines 626-632 $template->param( Link Here
626
    debt_confirmed            => $debt_confirmed,
626
    debt_confirmed            => $debt_confirmed,
627
    SpecifyDueDate            => $duedatespec_allow,
627
    SpecifyDueDate            => $duedatespec_allow,
628
    PatronAutoComplete        => C4::Context->preference("PatronAutoComplete"),
628
    PatronAutoComplete        => C4::Context->preference("PatronAutoComplete"),
629
    todaysdate                => dt_from_string()->set(hour => 23)->set(minute => 59),
629
    today_due_date_and_time   => dt_from_string()->set(hour => 23)->set(minute => 59),
630
    restriction_types         => scalar Koha::Patron::Restriction::Types->search(),
630
    restriction_types         => scalar Koha::Patron::Restriction::Types->search(),
631
    has_modifications         => $has_modifications,
631
    has_modifications         => $has_modifications,
632
    override_high_holds       => $override_high_holds,
632
    override_high_holds       => $override_high_holds,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +2 lines)
Lines 1093-1099 Link Here
1093
        // On-site checkout
1093
        // On-site checkout
1094
        function toggle_onsite_checkout(){
1094
        function toggle_onsite_checkout(){
1095
            if ( $("#onsite_checkout").prop('checked') ) {
1095
            if ( $("#onsite_checkout").prop('checked') ) {
1096
                $("#duedatespec").val("[% todaysdate | $KohaDates  with_hours => 1 %]")
1096
                const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
1097
                estimated_delivery_date.setDate("[% today_due_date_and_time | $KohaDates with_hours => 1 %]");
1097
            }
1098
            }
1098
        }
1099
        }
1099
1100
1100
- 

Return to bug 33345