4 [%- USE L %][%- USE P -%]
5 <h1>[% HTML.escape(title) %]</h1>
7 [%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
8 [%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
9 [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
10 [%- SET vcdefault = 'old' _ vc %]
11 [%- SET style="width: 250px" %]
13 <form method="post" action="oe.pl" id="form">
20 <th align="right">[% HTML.escape(vclabel) %]</th>
21 <td>[% L.input_tag(vc, $vcdefault, style=style, class="initial_focus") %]</td>
24 <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
25 <td>[% L.input_tag("cp_name", '', style=style) %]</td>
27 [%- IF ALL_DEPARTMENTS.size %]
29 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
30 <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style=style) %]</td>
34 <th align="right">[% HTML.escape(ordlabel) %]</th>
35 <td>[% L.input_tag(ordnrname, "", style=style) %]</td>
39 <th align="right">[% LxERP.t8("Customer Order Number") %]</th>
40 <td>[% L.input_tag("cusordnumber", '', style=style) %]</td>
44 <th align="right">[% 'Employee' | $T8 %]</th>
45 <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style=style) %]</td>
48 <th align="right">[% 'Salesman' | $T8 %]</th>
49 <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style=style) %]</td>
52 <th align="right">[% 'Steuersatz' | $T8 %]</th>
53 <td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style=style) %]</td>
56 <th align="right">[% 'Shipping Point' | $T8 %]</th>
57 <td>[% L.input_tag('shippingpoint', '', style=style) %]</td>
60 <th align="right">[% 'Transaction description' | $T8 %]</th>
61 <td>[% L.input_tag("transaction_description", "", style=style) %]</td>
62 <th align="right">[% 'Part Description' | $T8 %]</th>
63 <td>[% L.input_tag("parts_description", "", style=style) %]</td>
66 <th align="right">[% 'Project' | $T8 %]</th>
67 <td>[% P.project.picker("project_id", '', active="both", valid="both", style=style) %]</td>
68 <th align="right">[% 'Part Number' | $T8 %]</th>
69 <td>[% L.input_tag("parts_partnumber", "", style=style) %]</td>
71 [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %]
73 <th align="right" nowrap>[% vctypelabel %]</th>
75 [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style=style) %]
80 <th align="right">[% 'Internal Notes' | $T8 %]</th>
81 <td>[% L.input_tag('intnotes', '', style=style) %]</td>
84 <th align="right">[% 'Phone Notes' | $T8 %]</th>
85 <td>[% L.input_tag('phone_notes', '', style=style) %]</td>
87 [%- IF type == 'sales_order' %]
89 <th align="right">[% 'Full Text' | $T8 %]</th>
90 <td>[% L.input_tag('fulltext', '', style=style) %]</td>
94 <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
96 [% L.date_tag('transdatefrom') %]
98 [% L.date_tag('transdateto') %]
102 <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
104 [% L.date_tag('reqdatefrom') %]
106 [% L.date_tag('reqdateto') %]
110 [%- IF type == 'sales_order' %]
112 <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
114 [% L.date_tag('insertdatefrom') %]
116 [% L.date_tag('insertdateto') %]
121 [%- IF type == 'sales_quotation' %]
123 <th align="right">[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
125 [% L.date_tag('expected_billing_date_from', '') %]
127 [% L.date_tag('expected_billing_date_to', '') %]
131 <th align="right">[% 'Order probability' | $T8 %]</th>
133 [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %]
134 [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
139 [%- IF CT_CUSTOM_VARIABLES.size %]
142 <td colspan=4 align=left><b>[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]</b></td>
144 [% CT_CUSTOM_VARIABLES_FILTER_CODE %]
148 <th align="right">[% 'Include in Report' | $T8 %]</th>
153 <input type="checkbox" name="open" value="1" id="open" checked>
154 <label for="open">[% 'Open' | $T8 %]</label>
157 <input type="checkbox" name="closed" value="1" id="closed">
158 <label for="closed">[% 'Closed' | $T8 %]</label>
161 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
164 <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
165 <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
168 <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
169 <label for="delivered">[% 'Delivery Order(s) for full qty created' | $T8 %]</label>
173 [%- IF type == 'sales_order' %]
176 [% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
179 [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
185 <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
186 <label for="l_id">[% 'ID' | $T8 %]</label>
189 <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
190 <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
194 <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
195 <label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
201 <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
202 <label for="l_transdate">[% 'Date' | $T8 %]</label>
205 <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
206 <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
208 [%- IF type == 'sales_order' %]
210 <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
211 <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
217 <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
218 <label for="l_name">[% HTML.escape(vclabel) %]</label>
221 <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
222 <label for="l_employee">[% 'Employee' | $T8 %]</label>
225 <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
226 <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
231 <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
232 <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
234 <td>[%- L.checkbox_tag('l_taxzone', label => LxERP.t8('Steuersatz')) %]</td>
235 <td>[%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]</td>
239 <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
240 <label for="l_netamount">[% 'Amount' | $T8 %]</label>
243 <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
244 <label for="l_tax">[% 'Tax' | $T8 %]</label>
247 <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
248 <label for="l_amount">[% 'Total' | $T8 %]</label>
253 <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
254 <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
257 <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
258 <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
261 <input name="l_payment_terms" id="l_payment_terms" class="checkbox" type="checkbox" value="Y">
262 <label for="l_payment_terms">[% 'Payment Terms' | $T8 %]</label>
267 <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
268 <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
271 <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y"[% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]>
272 <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
275 [%- L.checkbox_tag('l_department', label => LxERP.t8('Department')) %]
281 <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
282 <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
285 <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
286 <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
289 <input name="l_intnotes" id="l_intnotes" class="checkbox" type="checkbox" value="Y">
290 <label for="l_intnotes">[% 'Internal Notes' | $T8 %]</label>
293 [% IF type == 'sales_quotation' %]
296 <input name="l_order_probability_expected_billing_date" id="l_order_probability_expected_billing_date" class="checkbox" type="checkbox" value="Y">
297 <label for="l_order_probability_expected_billing_date">[% 'Order probability & expected billing date' | $T8 %]</label>
303 <input name="l_remaining_amount" id="l_remaining_amount" class="checkbox" type="checkbox" value="Y">
304 <label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
307 <input name="l_remaining_netamount" id="l_remaining_netamount" class="checkbox" type="checkbox" value="Y">
308 <label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
312 <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</b></td>
316 <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
317 <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
320 <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
321 <label for="l_country">[% 'Country' | $T8 %]</label>
324 <input name="l_ustid" id="l_ustid" class="checkbox" type="checkbox" value="Y">
325 <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
329 [% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]
339 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
340 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
341 <input type="hidden" name="action" value="orders">