[%- USE T8 %]
[%- USE L %]
+[%- USE P %]
[%- USE LxERP %]
[%- USE HTML %]
<form action='controller.pl' method='post' id='filter_form'>
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
<table id='filter_table'>
<tr>
- <th align="right">[% 'Start' | $T8 %] [% 'From Date' | $T8 %]</th>
- <td>[% L.date_tag('filter.start_time:date::ge', filter.start_time_date__ge) %]</td>
+ <th align="right">[% 'Date' | $T8 %] [% 'From Date' | $T8 %]</th>
+ <td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]</td>
</tr>
<tr>
- <th align="right">[% 'Start' | $T8 %] [% 'To Date' | $T8 %]</th>
- <td>[% L.date_tag('filter.start_time:date::le', filter.start_time_date__le) %]</td>
+ <th align="right">[% 'Date' | $T8 %] [% 'To Date' | $T8 %]</th>
+ <td>[% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
</tr>
<tr>
<th align="right">[% 'Customer' | $T8 %]</th>
<th align="right">[% 'Customer Number' | $T8 %]</th>
<td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, size = 20) %]</td>
</tr>
+ <tr>
+ <th align="right">[% 'Order Number' | $T8 %]</th>
+ <td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, size = 20) %]</td>
+ </tr>
+ <tr>
+ <th align="right">[% 'Project' | $T8 %]</th>
+ <td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", description_style='both', size = 20) %]</td>
+ </tr>
+ <tr>
+ <th align="right">[% 'Description' | $T8 %]</th>
+ <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = 20) %]</td>
+ </tr>
[%- IF SELF.can_view_all -%]
<tr>
</tr>
[%- END -%]
+ <tr>
+ <th align="right">[% 'Booked' | $T8 %]</th>
+ <td>[% L.select_tag('filter.booked', [ [ '1', LxERP.t8('Yes') ], [ '0', LxERP.t8('No') ] ], default=filter.booked, with_empty=1, style="width: 200px") %]</td>
+ </tr>
+
</table>
[% L.hidden_tag('sort_by', FORM.sort_by) %]