[% USE T8 %] [% USE L %] [% USE HTML %] [% USE LxERP %] [% USE P %]

[% title %]

[% IF vc == 'customer' %] [% SET is_customer = '1' %] [% ELSE %] [% SET is_customer = '0' %] [% END %] [% SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
[% IF ALL_BUSINESS_TYPES.size %] [% END %] [% IF is_customer %] [% END %] [% IF ALL_DEPARTMENTS.size %] [% END %]
[% 'Customer' | $T8 %]
[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %] [% P.input_tag(vc, "", class="fixed_width initial_focus wi-normal") %]
[% vctypelabel %] [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key='description', with_empty=1, class='wi-normal') %]
[% 'Contact Person' | $T8 %] [% L.input_tag("cp_name", '', class="fixed_width wi-normal") %]
[% 'Handling' | $T8 %]
[% 'Employee' | $T8 %] [% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]
[% 'Salesman' | $T8 %] [% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]
[% 'Department' | $T8 %] [% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class="fixed_width wi-normal") %]
[% 'Delivery Order Date' | $T8 %] [% #'From' | $T8 %] [% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]
[% 'Reqdate' | $T8 %] [% #'From' | $T8 %] [% L.date_tag('reqdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto') %]
[% 'Insert Date' | $T8 %] [% #'From' | $T8 %] [% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %]
[% 'Order & Numbers' | $T8 %]
[% 'Delivery Order Number' | $T8 %]
[% 'Order Number' | $T8 %]
[% 'Customer Order Number' | $T8 %]
[% 'Project Number' | $T8 %]
[% 'Transaction description' | $T8 %]
[% 'Article data' | $T8 %]
[% 'Part Description' | $T8 %]
[% 'Part Number' | $T8 %]
[% 'Serial Number' | $T8 %]

[% 'Include in Report' | $T8 %]

[% 'Status' | $T8 %]

[% 'IDs & Numbers' | $T8 %]

[% IF is_customer %]
[% END %]

[% 'Dates' | $T8 %]

[% IF is_customer %]
[% END %]

[% 'Order data' | $T8 %]

[% 'Handling' | $T8 %]