From: Sven Schöling Date: Thu, 3 Dec 2020 16:00:15 +0000 (+0100) Subject: Kreditorenbuchungen: Automatisches Setzen von Fälligkeitsdatum X-Git-Tag: kivitendo-mebil_0.1-0~9^2~570 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=31d15c5a5db556dccc20159922c3c509166911b8;p=kivitendo-erp.git Kreditorenbuchungen: Automatisches Setzen von Fälligkeitsdatum --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 8f06776a1..afc2ab558 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -451,7 +451,7 @@ sub form_header { my $follow_up_vc = $form->{vendor_id} ? SL::DB::Vendor->load_cached($form->{vendor_id})->name : ''; my $follow_up_trans_info = "$form->{invnumber} ($follow_up_vc)"; - $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.RecordTemplate.js", "kivi.File.js", "kivi.AP.js", "kivi.CustomerVendor.js", "kivi.Validator.js", "autocomplete_project.js"); + $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.SalesPurchase.js", "kivi.GL.js", "kivi.RecordTemplate.js", "kivi.File.js", "kivi.AP.js", "kivi.CustomerVendor.js", "kivi.Validator.js", "autocomplete_project.js"); # $form->{totalpaid} is used by the action bar setup to determine # whether or not canceling is allowed. Therefore it must be # calculated prior to the action bar setup. diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index 1c5a51d94..2f22a96f2 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -252,7 +252,7 @@ [% L.textarea_tag("intnotes", intnotes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %] - [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px") %] + [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %]