From: Bernd Bleßmann Date: Fri, 13 Nov 2015 12:14:47 +0000 (+0100) Subject: Auftrags-Controller: Mehrfach-Artikelauswahl: qty as number X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2e1b486eddce9f07ee80a937f6f2e1cddcf754b8;p=kivitendo-erp.git Auftrags-Controller: Mehrfach-Artikelauswahl: qty as number --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 968367637..2773f2c1e 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -360,8 +360,8 @@ sub action_multi_items_update_result { sub action_add_multi_items { my ($self) = @_; - my @form_attr = grep { $_->{qty} } @{ $::form->{add_multi_items} }; - return unless scalar @form_attr; + my @form_attr = grep { $_->{qty_as_number} } @{ $::form->{add_multi_items} }; + return $self->js->render() unless scalar @form_attr; my @items; foreach my $attr (@form_attr) { diff --git a/templates/webpages/order/tabs/_multi_items_result.html b/templates/webpages/order/tabs/_multi_items_result.html index 381a82485..17f90334b 100644 --- a/templates/webpages/order/tabs/_multi_items_result.html +++ b/templates/webpages/order/tabs/_multi_items_result.html @@ -13,7 +13,7 @@ [% L.hidden_tag("add_multi_items[+].parts_id", item.id) %] - [% L.input_tag("add_multi_items[].qty", '', size = 5, style='text-align:right', + [% L.input_tag("add_multi_items[].qty_as_number", '', size = 5, style='text-align:right', class = 'multi_items_qty', onclick = 'set_qty_to_one(this)') %] [% HTML.escape(item.unit) %] @@ -26,7 +26,7 @@