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

[% HTML.escape(title) %]

[% 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') %] [% SET vcdefault = 'old' _ vc %] [% SET style="width: 250px" %]
[% UNLESS ALL_BUSINESS_TYPES.size == 0 %] [% END %]
[% HTML.escape(vclabel) %]
[% HTML.escape(vclabel) %] [% L.input_tag(vc, $vcdefault, class="initial_focus wi-normal") %]
[% 'Contact Person' | $T8 %] [% L.input_tag("cp_name", '', class="wi-normal") %]
[% vctypelabel %] [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, class="wi-normal") %]
[% IF is_order %] [% END %] [% IF type == 'sales_order' %] [% END %] [% IF type == 'sales_quotation' %] [% END %] [% IF CT_CUSTOM_VARIABLES.size %] [% CT_CUSTOM_VARIABLES_FILTER_CODE %] [% END %]
[% 'Request Quotation' | $T8 %]
[% HTML.escape(ordlabel) %] [% L.input_tag(ordnrname, "", class="wi-lightwide") %]
[% LxERP.t8("Customer Order Number") %] [% L.input_tag("cusordnumber", '', class="wi-lightwide") %]
[% 'Steuersatz' | $T8 %] [% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', class="wi-lightwide") %]
[% 'Shipping Point' | $T8 %] [% L.input_tag('shippingpoint', '', class="wi-lightwide") %]
[% 'Transaction description' | $T8 %] [% L.input_tag("transaction_description", "", class="wi-lightwide") %]
[% 'Project' | $T8 %] [% P.project.picker("project_id", '', active="both", valid="both", class="wi-lightwide") %]
[% 'Internal Notes' | $T8 %] [% L.input_tag('intnotes', '', style=style) %]
[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %] [% L.date_tag('transdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto','', class='wi-date') %]
[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %] [% L.date_tag('reqdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto','', class='wi-date') %]
[% 'Insert Date' | $T8 %] [% 'From' | $T8 %] [% L.date_tag('insertdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto','', class='wi-date') %]
[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %] [% L.date_tag('expected_billing_date_from', '', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('expected_billing_date_to', '', class='wi-date') %]
[% 'Order probability' | $T8 %] [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %] [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]
[% IF ALL_DEPARTMENTS.size %] [% END %]
[% 'Article' | $T8 %]
[% 'Part Description' | $T8 %] [% L.input_tag("parts_description", "", class="wi-normal") %]
[% 'Part Number' | $T8 %] [% L.input_tag("parts_partnumber", "", class="wi-normal") %]
[% 'Handling' | $T8 %]
[% 'Employee' | $T8 %] [% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class="wi-normal") %]
[% 'Salesman' | $T8 %] [% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class="wi-normal") %]
[% 'Department' | $T8 %] [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class="wi-normal") %]
[% IF type == 'sales_order' OR type == 'purchase_order' %] [% END %] [% IF type == 'sales_order' %] [% END %]
[% 'State' | $T8 %]
[% 'Open' | $T8 %]
[% 'Closed' | $T8 %]
[% 'Not delivered' | $T8 %]
[% 'Delivery Order(s) for full qty created' | $T8 %]
[% 'Periodic invoices active' | $T8 %] [% L.checkbox_tag("periodic_invoices_active") %]
[% 'Periodic invoices inactive' | $T8 %] [% L.checkbox_tag("periodic_invoices_inactive") %]

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

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

[% IF is_order %]
[% END %]

[% 'Handling' | $T8 %]

[% 'Amounts' | $T8 %]

[% HTML.escape(vclabel) %]

[% 'Taxes' | $T8 %]

[% L.checkbox_tag('l_taxzone', label => LxERP.t8('Steuersatz')) %]

[% 'Date' | $T8 %]

[% IF type == 'sales_order' %]
[% END %]

Order info

[% L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]
[% IF type == 'sales_quotation' %]
[% END %]

Custom Variables

[% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]