From fdf5b8ae58b69b3a96a2255128e0524323d18cd7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 25 Apr 2016 14:50:44 +0200 Subject: [PATCH] =?utf8?q?Angebote/Auftr=C3=A4ge:=20Suche=20nach=20Artikel?= =?utf8?q?nummer/-beschreibung=20in=20Positionen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/OE.pm | 27 +++++++++++++++++++++++++++ bin/mozilla/oe.pl | 5 ++++- templates/webpages/oe/search.html | 10 ++++++++-- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/SL/OE.pm b/SL/OE.pm index 7a045bfcb..61af6211c 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -287,6 +287,33 @@ SQL push @values, conv_date($form->{expected_billing_date_to}); } + if ($form->{parts_partnumber}) { + $query .= <{parts_partnumber}); + } + + if ($form->{parts_description}) { + $query .= <{parts_description}); + } + if ($form->{all}) { my @tokens = parse_line('\s+', 0, $form->{all}); # ordnumber quonumber customer.name vendor.name transaction_description diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 7c2dbf763..4870287e7 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -906,7 +906,8 @@ sub orders { transaction_description transdatefrom transdateto type vc employee_id salesman_id reqdatefrom reqdateto projectnumber project_id periodic_invoices_active periodic_invoices_inactive business_id shippingpoint taxzone_id reqdate_unset_or_old insertdatefrom insertdateto - order_probability_op order_probability_value expected_billing_date_from expected_billing_date_to); + order_probability_op order_probability_value expected_billing_date_from expected_billing_date_to + parts_partnumber parts_description); push @hidden_variables, map { "cvar_$_->{name}" } @ct_searchable_custom_variables; my @keys_for_url = grep { $form->{$_} } @hidden_variables; @@ -989,6 +990,8 @@ sub orders { push @options, $locale->text('Transaction description') . " : $form->{transaction_description}" if $form->{transaction_description}; push @options, $locale->text('Quick Search') . " : $form->{all}" if $form->{all}; push @options, $locale->text('Shipping Point') . " : $form->{shippingpoint}" if $form->{shippingpoint}; + push @options, $locale->text('Part Description') . " : $form->{parts_description}" if $form->{parts_description}; + push @options, $locale->text('Part Number') . " : $form->{parts_partnumber}" if $form->{parts_partnumber}; if ( $form->{transdatefrom} or $form->{transdateto} ) { push @options, $locale->text('Order Date'); push @options, $locale->text('From') . " " . $locale->date(\%myconfig, $form->{transdatefrom}, 1) if $form->{transdatefrom}; diff --git a/templates/webpages/oe/search.html b/templates/webpages/oe/search.html index e63f6cd1d..b7161ee8d 100644 --- a/templates/webpages/oe/search.html +++ b/templates/webpages/oe/search.html @@ -81,11 +81,14 @@ [% 'Transaction description' | $T8 %] - + + + [% 'Part Description' | $T8 %] + [% 'Project Number' | $T8 %] - + [%- INCLUDE 'generic/multibox.html' name = MYCONFIG.vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id', style = "width: 250px", @@ -97,6 +100,9 @@ allow_textbox = 1, -%] + + [% 'Part Number' | $T8 %] + [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %] -- 2.20.1