From: Moritz Bunkus Date: Thu, 23 Mar 2017 10:16:49 +0000 (+0100) Subject: Ver-/Einkauf/Finanzbuchhaltung: automatisches Update nach Kunden-/Lieferantenwechsel X-Git-Tag: release-3.5.4~1185 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e6291b3ab19b0f14f39ef371cbb337d6e7667d1c;p=kivitendo-erp.git Ver-/Einkauf/Finanzbuchhaltung: automatisches Update nach Kunden-/Lieferantenwechsel --- diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index e4aa85d86..7340e6648 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -246,6 +246,7 @@ sub setup_do_action_bar { action => [ t8('Update'), submit => [ '#form', { action => "update" } ], + id => 'update_button', accesskey => 'enter', ], diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index dc3ed44e0..dc3f96fac 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -82,7 +82,7 @@ [% 'Vendor' | $T8 %] - [% P.customer_vendor_picker("vendor_id", vendor_id, type="vendor", style="width: 300px") %] + [% P.customer_vendor_picker("vendor_id", vendor_id, type="vendor", style="width: 300px", onchange="\$('#update_button').click()") %] [% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %] [% L.hidden_tag("previous_vendor_id", vendor_id) %] diff --git a/templates/webpages/ar/form_header.html b/templates/webpages/ar/form_header.html index 8f59a37ea..a1c479d6a 100644 --- a/templates/webpages/ar/form_header.html +++ b/templates/webpages/ar/form_header.html @@ -47,7 +47,7 @@ [% 'Customer' | $T8 %] - [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 300px", class=(initial_focus == 'customer_id' ? "initial_focus" : "")) %] + [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 300px", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %] [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %] [% L.hidden_tag("previous_customer_id", customer_id) %] [% L.hidden_tag('terms', terms) %] diff --git a/templates/webpages/do/form_header.html b/templates/webpages/do/form_header.html index 71edcf79a..06ef6da05 100644 --- a/templates/webpages/do/form_header.html +++ b/templates/webpages/do/form_header.html @@ -136,7 +136,7 @@ [% P.hidden_tag(vc_id, $vc_id) %] [% HTML.escape(VC_OBJ.name) %] [% ELSE %] - [% P.customer_vendor_picker(vc_id, $vc_id, type=vc, class="fixed_width") %] + [% P.customer_vendor_picker(vc_id, $vc_id, type=vc, class="fixed_width", onchange="\$('#update_button').click()") %] [% END %] [% P.hidden_tag("previous_" _ vc_id, $vc_id) %] [% P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)")) %] diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index 44c99de4e..5a99378f7 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -51,7 +51,7 @@ [% 'Vendor' | $T8 %] - [% P.customer_vendor_picker("vendor_id", vendor_id, type="vendor", style="width: 250px", class="initial_focus") %] + [% P.customer_vendor_picker("vendor_id", vendor_id, type="vendor", style="width: 250px", class="initial_focus", onchange="\$('#update_button').click()") %] [% P.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %] [% P.hidden_tag("previous_vendor_id", vendor_id) %] diff --git a/templates/webpages/is/form_header.html b/templates/webpages/is/form_header.html index 5b3907c53..66367ef88 100644 --- a/templates/webpages/is/form_header.html +++ b/templates/webpages/is/form_header.html @@ -54,7 +54,7 @@ [% 'Customer' | $T8 %] - [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 250px", class="initial_focus") %] + [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 250px", class="initial_focus", onchange="\$('#update_button').click()") %] [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %] [% L.hidden_tag("previous_customer_id", customer_id) %] [% L.hidden_tag("customer_pricegroup_id", customer_pricegroup_id) %] diff --git a/templates/webpages/oe/form_header.html b/templates/webpages/oe/form_header.html index 7899ab324..7c796a037 100644 --- a/templates/webpages/oe/form_header.html +++ b/templates/webpages/oe/form_header.html @@ -60,7 +60,7 @@ [% IF vc == 'customer' %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %] [%- SET vc_id = vc _ "_id" %] - [% P.customer_vendor_picker(vc_id, $vc_id, type=vc, style="width: 250px", class="initial_focus") %] + [% P.customer_vendor_picker(vc_id, $vc_id, type=vc, style="width: 250px", class="initial_focus", onchange="\$('#update_button').click()") %] [% P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)")) %] [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]