Payment Helper setzt $self->transactions zurück
[kivitendo-erp.git] / templates / webpages / delivery_plan / _filter.html
index 244300e..fbdb9e4 100644 (file)
@@ -38,7 +38,7 @@
    <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>
      [% 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.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>