[% PROCESS "report_base.html"; PROCESS "elements.html" %]
[% text('Search Goods and Services') %]
[% text('Part criteria') %]
[% text('Type') %]
[% text('Status') %]
[% IF partsgroups.size > 0 -%]
[% text('Part Group') %] [% PROCESS select element_data = { "data-dojo-type" = "dijit/form/FilteringSelect" name = 'partsgroup_id' class = 'partsgroup' options = partsgroups default_values = [partsgroup_id] default_blank = 1 text_attr = 'partsgroup' value_attr = 'id' } %]
[% END -%]
[% text('Part Number') %] [% PROCESS input element_data = { name = 'partnumber' class = 'control_code' type = 'text' value = partnumber size = 16 } %]
[% text('Description') %] [% PROCESS input element_data = { name = 'description' class = 'description' type = 'text' value = description size = 32 } %]
[% text('Serial Number') %] [% PROCESS input element_data = { name = 'serialnumber' class = 'control_code' type = 'text' value = serialnumber size = 16 } %]
[% text('Part details') %]
[% text('Make') %] [% PROCESS input element_data = { name = 'make' class = 'control_code' type = 'text' value = make size = 16 } %]
[% text('Model') %] [% PROCESS input element_data = { name = 'model' class = 'control_code' type = 'text' value = model size = 16 } %]
[% text('Drawing') %] [% PROCESS input element_data = { name = 'drawing' class = 'control_code' type = 'text' value = make size = 16 } %]
[% text('Microfiche') %] [% PROCESS input element_data = { name = 'microfiche' class = 'control_code' type = 'text' value = model size = 16 } %]
[% text('Items Found In') %]
[% PROCESS input element_data = { type = "checkbox" name = "inc_is" value = 1 label = text('AR Invoices') } ; '
'; PROCESS input element_data = { type = "checkbox" name = "inc_so" value = 1 label = text('Sales Orders') } ; '
'; PROCESS input element_data = { type = "checkbox" name = "inc_quo" value = 1 label = text('Quotations') } ; '
'; PROCESS input element_data = { type = "checkbox" name = "inc_ir" value = 1 label = text('AP Invoices') } ; '
'; PROCESS input element_data = { type = "checkbox" name = "inc_po" value = 1 label = text('Purchase Orders') } ; '
'; PROCESS input element_data = { type = "checkbox" name = "inc_rfq" value = 1 label = text('RFQs') } %]
[% text('Period selection') %]
[% text('Select using') %]
[% IF comparison_type == 'by_periods'; YES="CHECKED"; NO=undef; ELSE; NO="CHECKED"; YES=undef; END; -%]
[% PROCESS input element_data={ type = 'radio', name = 'comparison_type', id = 'comparison_by_dates', value = 'by_dates', label = text('Dates'), checked = NO } label_pos = 1 ; %]
[% PROCESS input element_data={ type = 'radio', name = 'comparison_type', id = 'comparison_by_periods', value = 'by_periods', label = text('Periods'), checked = YES, } label_pos = 1 ; %]
[% label_pos = -1; # apparently, there's something leaky PROCESS input element_data = { label=text('From') class="date" name="from_date" id="from_date" size="11" title=datestyle } %]
[% label_pos = -1; # apparently, there's something leaky PROCESS input element_data = { label=text('To') class="date" name="to_date" id="to_date" size="11" title=datestyle } %]
[% PROCESS date_period_div; %]
[% text('Include in Report') %]
[% PROCESS input element_data = { name = 'col_id' type = 'checkbox' value = '1' label = text('ID') } %]
[% PROCESS input element_data = { name = 'col_partnumber' type = 'checkbox' value = '1' checked = 'CHECKED' label = text('Part Number') } %]
[% PROCESS input element_data = { name = 'col_description' type = 'checkbox' value = '1' checked = 'CHECKED' label = text('Description') } %]
[% PROCESS input element_data = { name = 'col_onhand' type = 'checkbox' value = '1' checked = 'CHECKED' label = text('On hand') } %]
[% PROCESS input element_data = { name = 'col_unit' type = 'checkbox' value = '1' checked = 'CHECKED' label = text('Unit') } %]
[% PROCESS input element_data = { name = 'col_priceupdate' type = 'checkbox' value = '1' label = text('Price Updated') } %]
[% PROCESS input element_data = { name = 'col_partsgroup' type = 'checkbox' value = '1' label = text('Part Group') } %]
[% PROCESS input element_data = { name = 'col_listprice' type = 'checkbox' value = '1' label = text('List Price') } %]
[% PROCESS input element_data = { name = 'col_sellprice' type = 'checkbox' value = '1' checked = 'CHECKED' label = text('Sell Price') } %]
[% PROCESS input element_data = { name = 'col_lastcost' type = 'checkbox' value = '1' checked = 'CHECKED' label = text('Last Cost') } %]
[% PROCESS input element_data = { name = 'col_avgcost' type = 'checkbox' value = '1' label = text('Average Cost') } %]
[% PROCESS input element_data = { name = 'col_linetotal' type = 'checkbox' value = '1' label = text('Line Total') } %]
[% PROCESS input element_data = { name = 'col_markup' type = 'checkbox' value = '1' label = text('Markup') } %]
[% PROCESS input element_data = { name = 'col_bin' type = 'checkbox' value = '1' label = text('Bin') } %]
[% PROCESS input element_data = { name = 'col_rop' type = 'checkbox' value = '1' label = text('ROP') } %]
[% PROCESS input element_data = { name = 'col_weight' type = 'checkbox' value = '1' label = text('Weight') } %]
[% PROCESS input element_data = { name = 'col_notes' type = 'checkbox' value = '1' label = text('Notes') } %]
[% PROCESS input element_data = { name = 'col_image' type = 'checkbox' value = '1' label = text('Image') } %]
[% PROCESS input element_data = { name = 'col_drawing' type = 'checkbox' value = '1' label = text('Drawing') } %]
[% PROCESS input element_data = { name = 'col_microfiche' type = 'checkbox' value = '1' label = text('Microfiche') } %]
[% PROCESS input element_data = { name = 'col_make' type = 'checkbox' value = '1' label = text('Make') } %]
[% PROCESS input element_data = { name = 'col_model' type = 'checkbox' value = '1' label = text('Model') } %]
[% PROCESS input element_data = { name = 'col_warehouse' type = 'checkbox' value = '1' label = text('Warehouse') } %]
[% PROCESS input element_data = { name = 'col_curr' type = 'checkbox' value = '1' label = text('Currency') } %]
[% PROCESS input element_data = { name = 'col_serialnumber' type = 'checkbox' value = '1' label = text('Serial Number') } %]
[% PROCESS input element_data = { name = 'subtotal' type = 'checkbox' value = '1' label = text('Subtotal') } %]
[% PROCESS button element_data = { name = '__action' class = 'submit' type = 'submit' value = 'search' text = text('Search') } %]