[%- USE HTML %] [%- USE T8 %] [%- USE LxERP %] [%- USE L %] [%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %] [%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %] [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]

[% HTML.escape(title) %]

[%- IF ALL_DEPARTMENTS.size %] [%- END %] [% IF is_order %] [% END %] [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %] [%- END %] [%- IF type == 'sales_quotation' %] [%- END %]
[% HTML.escape(vclabel) %] [%- INCLUDE 'generic/multibox.html' name = vc, default = vc == 'customer' ? oldcustomer : oldvendor, style = 'width: 250px', DATA = ALL_VC, id_sub = 'vc_keys', label_key = 'name', select = vc_select, limit = vclimit, show_empty = 1, allow_textbox = 1, class = 'initial_focus', -%]
[% 'Department' | $T8 %] [%- INCLUDE 'generic/multibox.html' name = 'department_id', style = 'width: 250px', DATA = ALL_DEPARTMENTS, id_key = 'id', label_key = 'description', limit = vclimit, show_empty = 1, allow_textbox = 1, -%]
[% HTML.escape(ordlabel) %]
[% LxERP.t8("Customer Order Number") %] [% L.input_tag("cusordnumber", '', style="width: 250px") %]
[% 'Employee' | $T8 %] [% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]
[% 'Salesman' | $T8 %] [% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]
[% 'Steuersatz' | $T8 %] [% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style='width: 250px') %]
[% 'Shipping Point' | $T8 %] [% L.input_tag('shippingpoint', '', style='width:250px') %]
[% 'Transaction description' | $T8 %]
[% 'Project Number' | $T8 %] [%- INCLUDE 'generic/multibox.html' name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id', style = "width: 250px", DATA = ALL_PROJECTS, id_key = 'id', label_key = 'projectnumber', limit = vclimit, show_empty = 1, allow_textbox = 1, -%]
[% vctypelabel %] [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %] [% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]
[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %] [% L.date_tag('reqdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto') %]
[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %] [% L.date_tag('expected_billing_date_from', '' 'BL') %] [% 'Expected billing date' | $T8 %] [% 'Bis' | $T8 %] [% L.date_tag('expected_billing_date_to', '' 'BL') %]
[% 'Order probability' | $T8 %] [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %] [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
[% 'Include in Report' | $T8 %] [%- IF type == 'sales_order' OR type == 'purchase_order' %] [%- END %] [%- IF type == 'sales_order' %] [%- END %] [% IF is_order %] [% END %] [% IF type == 'sales_quotation' %] [%- END %] [%- IF type == 'sales_order' %] [%- END %]
[% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %] [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
[%- L.checkbox_tag('l_taxzone', label => LxERP.t8('Steuersatz')) %] [%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]
[% HTML.escape(vclabel) %]