From c25c69bca6ac3906c4fc9932fee862649eb47c85 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 20 Jan 2017 15:54:05 +0100 Subject: [PATCH] =?utf8?q?Artikelsuche:=20=C3=BCberfl=C3=BCssige=20Fallunt?= =?utf8?q?erscheidungen=20nach=20Artikeltyp=20entfernen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Seit der Einführung der Artikelklassifizierung gibt es nur noch eine Suchmaske für Artikel, in der über Checkboxen gesteuert wird, nach welchen Typen gesucht wird. Daher ergibt es keinen Sinn, im Template danach zu unterscheiden, vor allem, da der aufrufende Code die Checks so setzt, dass immer alle Controls angezeigt werden. --- bin/mozilla/ic.pl | 5 +---- templates/webpages/ic/search.html | 18 ------------------ 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index d67409398..320538229 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -84,9 +84,6 @@ sub search { $form->{lastsort} = ""; # memory for which table was sort at last time $form->{ndxs_counter} = 0; # counter for added entries to top100 - # for seach all possibibilities, is_service only used as UNLESS so == 0 - my %is_xyz = ("is_part" => 1, "is_service" => 0, "is_assembly" =>1 ); - $form->{title} = (ucfirst $form->{searchitems}) . "s"; $form->{title} =~ s/ys$/ies/; $form->{title} = $locale->text($form->{title}); @@ -100,7 +97,7 @@ sub search { $form->header; $form->get_lists('partsgroup' => 'ALL_PARTSGROUPS'); - print $form->parse_html_template('ic/search', { %is_xyz, }); + print $form->parse_html_template('ic/search'); $lxdebug->leave_sub(); } #end search() diff --git a/templates/webpages/ic/search.html b/templates/webpages/ic/search.html index ad5722eef..0be5ac006 100644 --- a/templates/webpages/ic/search.html +++ b/templates/webpages/ic/search.html @@ -65,14 +65,12 @@ [% L.input_tag("serialnumber", "", style=style) %] - [%- UNLESS is_service %] [% 'Make' | $T8 %] [% L.input_tag("make", "", style=style) %] [% 'Model' | $T8 %] [% L.input_tag("model", "", style=style) %] - [%- END %] [% 'Drawing' | $T8 %] @@ -97,7 +95,6 @@ [% CUSTOM_VARIABLES_FILTER_CODE %] - [%- IF is_assembly %] @@ -105,17 +102,14 @@ [% L.radio_button_tag('bom', id='bom_1', value=1, label=LxERP.t8('Individual Items')) %] - [%- END %] [%- L.radio_button_tag('itemstatus', value='active', id='itemstatus_active', label=LxERP.t8('Active'), checked=1) %] - [%- UNLESS is_service %] [%- L.radio_button_tag('itemstatus', value='onhand', id='itemstatus_onhand', label=LxERP.t8('On Hand')) %] [%- L.radio_button_tag('itemstatus', value='short', id='itemstatus_short', label=LxERP.t8('Short')) %] [%- L.radio_button_tag('itemstatus', value='obsolete', id='itemstatus_obsolete', label=LxERP.t8('Obsolete')) %] - [%- END %] [%- L.radio_button_tag('itemstatus', value='orphaned', id='itemstatus_orphaned', label=LxERP.t8('Orphaned')) %] [%- L.radio_button_tag('itemstatus', value='', id='itemstatus_all', label=LxERP.t8('All')) %] @@ -129,9 +123,7 @@ - [%- UNLESS is_assembly %] - [%- END %] @@ -140,9 +132,7 @@ - [%- UNLESS is_assembly %] - [%- END %] @@ -151,9 +141,7 @@ - [%- UNLESS is_assembly %] - [%- END %]
[%- L.checkbox_tag('bought', label=LxERP.t8('Bought')) %][%- L.checkbox_tag('sold', label=LxERP.t8('Sold')) %]
[%- L.checkbox_tag('onorder', label=LxERP.t8('On Order')) %][%- L.checkbox_tag('ordered', label=LxERP.t8('Ordered')) %]
[%- L.checkbox_tag('rfq', label=LxERP.t8('RFQ')) %][%- L.checkbox_tag('quoted', label=LxERP.t8('Quoted')) %]
@@ -189,9 +177,7 @@ [%- L.checkbox_tag('l_partnumber', label=LxERP.t8('Part Number'), checked=1, value='Y') %] [%- L.checkbox_tag('l_description', label=LxERP.t8('Part Description'), checked=1, value='Y') %] - [%- UNLESS is_service %] [%- L.checkbox_tag('l_serialnumber', label=LxERP.t8('Serial Number'), value='Y') %] - [%- END %] [%- L.checkbox_tag('l_unit', label=LxERP.t8('Unit of measure'), value='Y', checked=1) %] @@ -205,10 +191,8 @@ [%- L.checkbox_tag('l_priceupdate', label=LxERP.t8('Updated'), value='Y') %] [%- L.checkbox_tag('l_deliverydate', label=LxERP.t8('Delivery Date'), value='Y') %] - [%- UNLESS is_service %] [%- L.checkbox_tag('l_rop', label=LxERP.t8('ROP'), value='Y') %] [%- L.checkbox_tag('l_weight', label=LxERP.t8('Weight'), value='Y') %] - [%- END %] @@ -227,9 +211,7 @@ - [%- UNLESS is_service %] [%- L.checkbox_tag('l_onhand', label=LxERP.t8('Stocked Qty'), value='Y') %] - [%- END %] [%- L.checkbox_tag('l_projectnumber', label=LxERP.t8('Project Number'), value='Y') %] [%- L.checkbox_tag('l_projectdescription', label=LxERP.t8('Project Description'), value='Y') %] [%- L.checkbox_tag('l_pricegroups', label=LxERP.t8('Pricegroups'), value='Y', checked=1) %] -- 2.20.1