[%- USE L %]
[%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
[%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
-<body>
+[%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
<form method="post" action="oe.pl">
limit = vclimit,
show_empty = 1,
allow_textbox = 1,
+ class = 'initial_focus',
-%]
</td>
</tr>
<th align="right">[% HTML.escape(ordlabel) %]</th>
<td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
</tr>
+[% IF is_order %]
+ <tr>
+ <th align="right">[% LxERP.t8("Customer Order Number") %]</th>
+ <td colspan="3">[% L.input_tag("cusordnumber", '', style="width: 250px") %]</td>
+ </tr>
+[% END %]
<tr>
<th align="right">[% 'Employee' | $T8 %]</th>
- <td>[% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %]</td>
+ <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
</tr>
<tr>
<th align="right">[% 'Salesman' | $T8 %]</th>
- <td>[% L.select_tag('salesman_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %]</td>
+ <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
+ </tr>
+ <tr>
+ <th align="right">[% 'Steuersatz' | $T8 %]</th>
+ <td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style='width: 250px') %]</td>
+ </tr>
+ <tr>
+ <th align="right">[% 'Shipping Point' | $T8 %]</th>
+ <td colspan="3">[% L.input_tag('shippingpoint', '', style='width:250px') %]</td>
</tr>
<tr>
<th align="right">[% 'Transaction description' | $T8 %]</th>
-%]
</td>
</tr>
+ [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %]
+ <tr>
+ <th align="right" nowrap>[% vctypelabel %]</th>
+ <td colspan="3">
+ [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
+ </td>
+ </tr>
+ [%- END %]
<tr>
<th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
<td>
<input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
<label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
</td>
+[% IF is_order %]
+ <td>
+ <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
+ <label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
+ </td>
+[% END %]
</tr>
<tr>
<td>
<label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
</td>
</tr>
+ <tr>
+ <td>
+ <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
+ <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
+ </td>
+ <td>[%- L.checkbox_tag('l_taxzone', label => LxERP.t8('Steuersatz')) %]</td>
+ <td>[%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]</td>
+ </tr>
<tr>
<td>
<input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
<label for="l_salesman">[% 'Salesman' | $T8 %]</label>
</td>
</tr>
+ <tr>
+ <td>
+ <input name="l_remaining_amount" id="l_remaining_amount" class="checkbox" type="checkbox" value="Y">
+ <label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
+ </td>
+ <td>
+ <input name="l_remaining_netamount" id="l_remaining_netamount" class="checkbox" type="checkbox" value="Y">
+ <label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
+ </td>
+ </tr>
<tr>
<td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
</tr>
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
<input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
</form>
-
-</body>
-</html>