[%- 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_DEPARTMENTS.size %] [%- END %] [%- IF is_customer %] [%- END %] [%- IF ALL_BUSINESS_TYPES.size %] [%- END %]
[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %] [% P.input_tag(vc, "", class="fixed_width initial_focus") %]
[% 'Contact Person' | $T8 %] [% L.input_tag("cp_name", '', class="fixed_width") %]
[% 'Delivery Order Number' | $T8 %]
[% 'Order Number' | $T8 %]
[% 'Customer Order Number' | $T8 %]
[% 'Department' | $T8 %] [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class="fixed_width") %]
[% 'Employee' | $T8 %] [% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]
[% 'Salesman' | $T8 %] [% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]
[% 'Transaction description' | $T8 %] [% 'Part Description' | $T8 %]
[% 'Project Number' | $T8 %] [% 'Part Number' | $T8 %]
[% 'Serial Number' | $T8 %]
[% vctypelabel %] [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
[% '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') %]
[% 'Include in Report' | $T8 %] [% IF is_customer %] [%- END %] [% IF is_customer %] [% END %]