8 [% SET show_images=0 %]
11 <div style="padding-bottom: 15px">
13 <form id="filter" name="filter" method="post" action="controller.pl">
16 <td>[% 'Customer' | $T8 %]</td>
17 <td>[% P.customer_vendor.picker('filter.order.customer.id', FORM.customer_id, type='customer', class="filter", size=size) %]</td>
20 <td>[% 'Part' | $T8 %]</td>
21 <td>[% L.input_tag('filter.part.all:substr:multi::ilike', FORM.part, size = size, class="filter") %]</td>
24 <td>[% 'Order Number' | $T8 %]</td>
25 <td>[% L.input_tag('filter.order.ordnumber:substr::ilike', FORM.ordnumber, size = 10, class="filter") %]</td>
28 <td>[% 'Order Date' | $T8 %]</td>
29 <td>[% 'From' | $T8 %] [% L.date_tag("filter.order.transdate:date::ge", filter.order.transdate_date___ge, class="filter") %] [% 'Until' | $T8 %] [% L.date_tag('filter.order.transdate:date::le', filter.order.transdate_date__le, class="filter") %]</td>
32 <td>[% 'Description' | $T8 %]</td>
33 <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = size, class="filter") %]</td>
36 <td>[% 'Long Description' | $T8 %]</td>
37 <td>[% L.input_tag('filter.longdescription:substr::ilike', filter.longdescription_substr__ilike, size = size, class="filter") %] </tr>
39 <td>[% 'Show images' | $T8 %]</td>
40 <td>[% L.checkbox_tag('show_images', checked=show_images) %] </tr>
43 [% L.button_tag("this.form.reset(); refresh_plot();", LxERP.t8("Reset")) %]
46 <div id="orderitems" style="padding-top: 20px">
47 [% PROCESS 'order_items_search/_order_item_list.html' %]
51 <script type="text/javascript">
53 [% IF FORM.customer_id %]
54 $( "#filter_part_all_substr_multi_ilike" ).focus();
56 $( "#filter_order_customer_id_name" ).focus();
59 addInputCallback($(".filter"), refresh_plot , 300 );
61 $('#show_images').change(function(){
67 function refresh_plot() {
68 var filterdata = $('#filter').serialize()
69 var url = './controller.pl?action=OrderItem/order_item_list_dynamic_table&' + filterdata;
73 success: function(data){
74 $('#orderitems').html(data);
80 function addInputCallback(inputfield, callback, delay) {
82 inputfield.on('keyup', function() {
84 window.clearTimeout(timer);
86 timer = window.setTimeout( function() {