+
+ [%- IF type == 'sales_order' %]
+ <tr>
+ <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
+ <td>
+ [% L.date_tag('insertdatefrom') %]
+ </td>
+ <th align="right">[% 'Bis' | $T8 %]</th>
+ <td>
+ [% L.date_tag('insertdateto') %]
+ </td>
+ </tr>
+ [%- END %]
+
+[%- IF type == 'sales_quotation' %]
+ <tr>
+ <th align="right">[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
+ <td>
+ [% L.date_tag('expected_billing_date_from', '' 'BL') %]
+ </td>
+ <th align="right">[% 'Expected billing date' | $T8 %] [% 'Bis' | $T8 %]</th>
+ <td>
+ [% L.date_tag('expected_billing_date_to', '' 'BL') %]
+ </td>
+ </tr>
+ <tr>
+ <th align="right">[% 'Order probability' | $T8 %]</th>
+ <td colspan="3">
+ [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %]
+ [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
+ </td>
+ </tr>
+[%- END %]
+
+[%- IF CT_CUSTOM_VARIABLES.size %]
+ <tr>
+ <td></td>
+ <td colspan=4 align=left><b>[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]</td>
+ </tr>
+ [% CT_CUSTOM_VARIABLES_FILTER_CODE %]
+[%- END %]
+