<th align="right">[% 'Quantity' | $T8 %]</th>
<td>[% L.input_tag('filter.qty:number', filter.qty_number, size = 20) %]</td>
</tr>
-[% IF vc == 'customer' %]
+[% IF SELF.vc == 'customer' %]
<tr>
<th align="right">[% 'Customer' | $T8 %]</th>
<td>[% L.input_tag('filter.order.customer.name:substr::ilike', filter.order.customer.name_substr__ilike, size = 20) %]</td>
style => 'width: 200px') %]
</td>
</tr>
+ <tr>
+ <th align="right">[% 'Employee' | $T8 %]</th>
+ <td>
+ [% L.select_tag('filter.order.employee_id', SELF.all_employees,
+ default => filter.order.employee_id,
+ title_key => 'name',
+ value_key => 'id',
+ with_empty => 1,
+ style => 'width: 200px') %]
+ </td>
+ </tr>
<tr>
<th align="right">[% 'Type' | $T8 %]</th>
<td>
[% L.checkbox_tag('filter.part.type[]', checked=filter.part.type_.assembly, value='assembly', label=LxERP.t8('Assembly')) %]
</td>
</tr>
+ <tr>
+ <th align="right">[% 'Query Type' | $T8 %]</th>
+ <td>
+ [% L.checkbox_tag('use_linked_items', checked=use_linked_items, value='1', label=LxERP.t8('Use linked items')) %]
+ </td>
+ </tr>
</table>
[% L.hidden_tag('action', 'DeliveryPlan/dispatch') %]
[% L.hidden_tag('page', FORM.page) %]
[% L.hidden_tag('vc', SELF.vc) %]
[% L.hidden_tag('mode', SELF.mode) %]
- [% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%]
+[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%]
-<a href='#' onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);'>[% 'Reset' | $T8 %]</a>
+<a href='#' onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);$("#filter_table select").prop("selectedIndex", 0);'>[% 'Reset' | $T8 %]</a>
</div>