From: Moritz Bunkus Date: Fri, 20 Jan 2017 16:25:51 +0000 (+0100) Subject: Einkaufsrechnungen: keine Multibox für Steuersatzauswahl X-Git-Tag: release-3.5.4~1667^2~23 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1c82a10ebeac06882c948e74bb94edb6f8a14495;p=kivitendo-erp.git Einkaufsrechnungen: keine Multibox für Steuersatzauswahl --- diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index d4a42a78d..593d290ab 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -270,7 +270,7 @@ sub form_header { $form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 0, "old_id" => \@old_project_ids }, - "taxzones" => "ALL_TAXZONES", + "taxzones" => ($form->{id} ? "ALL_TAXZONES" : "ALL_ACTIVE_TAXZONES"), "currencies" => "ALL_CURRENCIES", "vendors" => "ALL_VENDORS", "departments" => "all_departments", diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index 75ffde5d4..427e57004 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -107,13 +107,10 @@ [% 'Steuersatz' | $T8 %] - [%- INCLUDE 'generic/multibox.html' - name = 'taxzone_id' - style = 'width: 250px' - DATA = ALL_TAXZONES - id_key = 'id' - readonly = (id ? 1 : 0) - label_key = 'description' -%] + [% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES) , default = taxzone_id, title_key = 'description', disabled = (id ? 1 : 0), style='width: 250px', onchange = "document.getElementById('update_button').click();") %] + [%- IF id %] + + [%- END %] [%- IF id %]