[%- SET is_customer = '0' %]
[%- END %]
- <script type="text/javascript">
- $(function(){ document.Form.donumber.focus(); });
- </script>
+ [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
<style type="text/css">
.fixed_width {
<th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
- <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
+ <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width initial_focus">
[%- ELSE %]
- <select name="[% vc %]" class="fixed_width">
+ <select name="[% vc %]" class="fixed_width initial_focus">
<option></option>
[%- FOREACH row = ALL_VC %]
<option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>
<td colspan="3"><input name="serialnumber" class="fixed_width"></td>
</tr>
+ [%- IF ALL_BUSINESS_TYPES.size %]
+ <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">[% 'Delivery Order Date' | $T8 %] [% 'From' | $T8 %]</th>
<td>