]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/oe/search.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / oe / search.html
1 [% USE T8 %]
2 [% USE HTML %]
3 [% USE LxERP %]
4 [% USE L %]
5 [% USE P %]
6
7 <h1>[% HTML.escape(title) %]</h1>
8
9 [% SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
10 [% SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
11 [% SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
12 [% SET vcdefault = 'old' _ vc %]
13
14 <form method="post" action="oe.pl" id="form">
15
16 <div class="wrapper">
17
18 <table class="tbl-horizontal">
19   <caption>[% HTML.escape(vclabel) %]</caption>
20   <tbody>
21     <tr>
22       <th>[% HTML.escape(vclabel) %]</th>
23       <td>[% L.input_tag(vc, $vcdefault, class="initial_focus wi-normal") %]</td>
24     </tr>
25     <tr>
26       <th>[% 'Contact Person' | $T8 %]</th>
27       <td>[% L.input_tag("cp_name", '', class="wi-normal") %]</td>
28     </tr>
29     [% UNLESS ALL_BUSINESS_TYPES.size == 0 %]
30     <tr>
31       <th>[% vctypelabel %]</th>
32       <td>[% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, class="wi-normal") %]</td>
33     </tr>
34     [% END %]
35   </tbody>
36 </table>
37
38 <table class="tbl-horizontal">
39   <caption>[% IF is_order %][% 'Order' | $T8 %][% ELSE %][% 'Quotation' | $T8 %][% END %]</caption>
40   <colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup>
41   <tbody>
42     <tr>
43       <th>[% HTML.escape(ordlabel) %]</th>
44       <td>[% L.input_tag(ordnrname, "", class="wi-lightwide") %]</td>
45     </tr>
46     [% IF type == "purchase_order_confirmation" %]
47     <tr>
48       <th>[% LxERP.t8("Vendor Confirmation Number") %]</th>
49       <td>[% L.input_tag("vendor_confirmation_number", '', class="wi-lightwide") %]</td>
50     </tr>
51     [% END %]
52     [% IF is_order %]
53     <tr>
54       <th>[% LxERP.t8("Customer Order Number") %]</th>
55       <td>[% L.input_tag("cusordnumber", '', class="wi-lightwide") %]</td>
56     </tr>
57     [% END %]
58     <tr>
59       <th>[% 'Steuersatz' | $T8 %]</th>
60       <td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', class="wi-lightwide") %]</td>
61     </tr>
62     <tr>
63       <th>[% 'Shipping Point' | $T8 %]</th>
64       <td>[% L.input_tag('shippingpoint', '', class="wi-lightwide") %]</td>
65     </tr>
66     <tr>
67       <th>[% 'Transaction description' | $T8 %]</th>
68       <td>[% L.input_tag("transaction_description", "", class="wi-lightwide") %]</td>
69     </tr>
70     <tr>
71       <th>[% 'Project' | $T8 %]</th>
72       <td>[% P.project.picker("project_id", '', active="both", valid="both", class="wi-lightwide") %]</td>
73     </tr>
74     <tr>
75       <th>[% 'Internal Notes' | $T8 %]</th>
76       <td>[% L.input_tag('intnotes', '', class="wi-lightwide") %]</td>
77     </tr>
78     <tr>
79       <th>[% 'Phone Notes' | $T8 %]</th>
80       <td>[% L.input_tag('phone_notes', '', class="wi-lightwide") %]</td>
81      </tr>
82      [%- IF type == 'sales_order' %]
83      <tr>
84       <th>[% 'Full Text' | $T8 %]</th>
85       <td>[% L.input_tag('fulltext', '', class="wi-lightwide") %]</td>
86      </tr>
87      [%- END %]
88     <tr>
89       <th>[% IF type == 'purchase_order_confirmation' %][% 'Confirmation Date' | $T8 %][% ELSIF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
90       <td>[% L.date_tag('transdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto','', class='wi-date') %]</td>
91     </tr>
92     <tr>
93       <th>[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
94       <td>[% L.date_tag('reqdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto','', class='wi-date') %]</td>
95     </tr>
96     [% IF type == 'sales_order' %]
97     <tr>
98       <th>[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
99       <td>[% L.date_tag('insertdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto','', class='wi-date') %]</td>
100     </tr>
101     [% END %]
102     [% IF type == 'sales_quotation' %]
103     <tr>
104       <th>[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
105       <td>[% L.date_tag('expected_billing_date_from', '', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('expected_billing_date_to', '', class='wi-date') %]</td>
106     </tr>
107     <tr>
108       <th>[% 'Order probability' | $T8 %]</th>
109       <td>[% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %] [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]</td>
110     </tr>
111     [% END %]
112     [% IF CT_CUSTOM_VARIABLES.size %]
113       <tr>
114         <th class="caption" colspan="2">[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]</th>
115       </tr>
116       [% CT_CUSTOM_VARIABLES_FILTER_CODE %]
117     [% END %]
118   </tbody>
119 </table>
120
121
122 <table class="tbl-horizontal">
123   <caption>[% 'Article' | $T8 %]</caption>
124   <tbody>
125     <tr>
126       <th>[% 'Part Description' | $T8 %]</th>
127       <td>[% L.input_tag("parts_description", "", class="wi-normal") %]</td>
128     </tr>
129     <tr>
130       <th>[% 'Part Number' | $T8 %]</th>
131       <td>[% L.input_tag("parts_partnumber", "", class="wi-normal") %]</td>
132     </tr>
133     <tr>
134       <th class="caption" colspan="2"> [% 'Handling' | $T8 %] </th>
135     </tr>
136     <tr>
137       <th>[% 'Employee' | $T8 %]</th>
138       <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class="wi-normal") %]</td>
139     </tr>
140     <tr>
141       <th>[% 'Salesman' | $T8 %]</th>
142       <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class="wi-normal") %]</td>
143     </tr>
144     [% IF ALL_DEPARTMENTS.size %]
145     <tr>
146       <th>[% 'Department' | $T8 %]</th>
147       <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class="wi-normal") %]</td>
148     </tr>
149     [% END %]
150   </tbody>
151 </table>
152
153 <table class="tbl-horizontal">
154   <caption>[% 'Shipping Address' | $T8 %]</caption>
155   <colgroup> <col class="wi-small"><col class="wi-wide"> </colgroup>
156   <tbody>
157     <tr>
158       <th>[% 'Name' | $T8 %]</th>
159       <td>[% L.input_tag("shiptoname", "", class="wi-normal") %]</td>
160     </tr>
161     <tr>
162       <th>[% 'Department 1' | $T8 %]</th>
163       <td>[% L.input_tag("shiptodepartment_1", "", class="wi-normal") %]</td>
164     </tr>
165     <tr>
166       <th>[% 'Department 2' | $T8 %]</th>
167       <td>[% L.input_tag("shiptodepartment_2", "", class="wi-normal") %]</td>
168     </tr>
169     <tr>
170       <th>[% 'Street' | $T8 %]</th>
171       <td>[% L.input_tag("shiptostreet", "", class="wi-normal") %]</td>
172     </tr>
173     <tr>
174       <th>[% 'Zipcode' | $T8 %]</th>
175       <td>[% L.input_tag("shiptozipcode", "", class="wi-normal") %]</td>
176     </tr>
177     <tr>
178       <th>[% 'City' | $T8 %]</th>
179       <td>[% L.input_tag("shiptocity", "", class="wi-normal") %]</td>
180     </tr>
181     <tr>
182       <th>[% 'Country' | $T8 %]</th>
183       <td>[% L.input_tag("shiptocountry", "", class="wi-normal") %]</td>
184     </tr>
185   </tbody>
186 </table>
187
188 <table class="tbl-horizontal">
189   <caption>[% 'Status' | $T8 %]</caption>
190   <tbody>
191     <tr>
192       <th>[% 'Open' | $T8 %]</th>
193       <td><input type="checkbox" name="open" value="1" id="open" checked></td>
194     </tr>
195     <tr>
196       <th>[% 'Closed' | $T8 %]</th>
197       <td><input type="checkbox" name="closed" value="1" id="closed"></td>
198     </tr>
199     <tr>
200       <th>[% 'Status' | $T8 %]</th>
201       <td>[% L.select_tag('order_status_id', ALL_ORDER_STATUSES, default = order_status_id, title_key = 'name', with_empty = 1, class="wi-lightwide") %]</td>
202     </tr>
203     [% IF type == 'sales_order' OR type == 'purchase_order' %]
204     <tr>
205       <th>[% 'Not delivered' | $T8 %]</th>
206       <td><input name="notdelivered" id="notdelivered" type="checkbox" value="1" checked></td>
207     </tr>
208     <tr>
209       <th>[% 'Delivery Order(s) for full qty created' | $T8 %]</th>
210       <td><input name="delivered" id="delivered" type="checkbox" value="1" checked></td>
211     </tr>
212     [% END %] [% IF type == 'sales_order' %]
213     <tr>
214       <th>[% 'Periodic invoices active' | $T8 %]</th>
215       <td>[% L.checkbox_tag("periodic_invoices_active") %]</td>
216     </tr>
217     <tr>
218       <th>[% 'Periodic invoices inactive' | $T8 %]</th>
219       <td>[% L.checkbox_tag("periodic_invoices_inactive") %]</td>
220     </tr>
221     [% END %]
222   </tbody>
223 </table>
224 </div><!-- /.wrapper -->
225
226
227 <div class="wrapper form-addition control-panel">
228
229 <h3>[% 'Include in Report' | $T8 %]</h3>
230
231 <div class="list col">
232   <h4>[% 'Numbers & IDs' | $T8 %]</h4>
233   <div>
234     <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" type="checkbox" value="Y" checked>
235     <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
236   </div>
237   <div>
238     <input name="l_id" id="l_id" type="checkbox" value="Y">
239     <label for="l_id">[% 'ID' | $T8 %]</label>
240   </div>
241   <div>
242     <input name="l_globalprojectnumber" id="l_globalprojectnumber" type="checkbox" value="Y">
243     <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
244   </div>
245   [% IF type == "purchase_order_confirmation" %]
246   <div>
247     <input name="l_vendor_confirmation_number" id="l_vendor_confirmation_number" type="checkbox" value="Y" checked>
248     <label for="l_vendor_confirmation_number">[% LxERP.t8("Vendor Confirmation Number") %]</label>
249   </div>
250   [% END %]
251   [% IF is_order %]
252   <div>
253     <input name="l_cusordnumber" id="l_cusordnumber" type="checkbox" value="Y" checked>
254     <label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
255   </div>
256   [% END %]
257 </div>
258 <div class="list col">
259   <h4> [% 'Handling' | $T8 %] </h4>
260   <div>
261     <input name="l_employee" id="l_employee" type="checkbox" value="Y" checked>
262     <label for="l_employee">[% 'Employee' | $T8 %]</label>
263   </div>
264   <div>
265     <input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
266     <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
267   </div>
268   <div>
269     <input name="l_order_status" id="l_order_status" class="checkbox" type="checkbox" value="Y">
270     <label for="l_order_status">[% 'Status' | $T8 %]</label>
271   </div>
272   <div>
273    <input name="l_intnotes" id="l_intnotes" class="checkbox" type="checkbox" value="Y">
274    <label for="l_intnotes">[% 'Internal Notes' | $T8 %]</label>
275   </div>
276 </div>
277
278 <div class="list col">
279   <h4>[% 'Amounts' | $T8 %]</h4>
280   <div>
281     <input name="l_amount" id="l_amount" type="checkbox" value="Y" checked>
282     <label for="l_amount">[% 'Total' | $T8 %]</label>
283   </div>
284   <div>
285     <input name="l_marge_total" id="l_marge_total" type="checkbox" value="Y">
286     <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
287   </div>
288   <div>
289     <input name="l_marge_percent" id="l_marge_percent" type="checkbox" value="Y">
290     <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
291   </div>
292   <div>
293     <input name="l_netamount" id="l_netamount" type="checkbox" value="Y">
294     <label for="l_netamount">[% 'Amount' | $T8 %]</label>
295   </div>
296   <div>
297     <input name="l_subtotal" id="l_subtotal" type="checkbox" value="Y">
298     <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
299   </div>
300   <div>
301     <input name="l_remaining_amount" id="l_remaining_amount" type="checkbox" value="Y">
302     <label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
303   </div>
304   <div>
305     <input name="l_remaining_netamount" id="l_remaining_netamount" type="checkbox" value="Y">
306     <label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
307   </div>
308 </div>
309 <div class="list col">
310   <h4>[% HTML.escape(vclabel) %]</h4>
311   <div>
312     <input name="l_name" id="l_name" type="checkbox" value="Y" checked>
313     <label for="l_name">[% HTML.escape(vclabel) %]</label>
314   </div>
315   <div>
316     <input name="l_vcnumber" id="l_vcnumber" type="checkbox" value="Y">
317     <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
318   </div>
319   <div>
320     <input name="l_country" id="l_country" type="checkbox" value="Y">
321     <label for="l_country">[% 'Country' | $T8 %]</label>
322   </div>
323   <div>
324     <input name="l_ustid" id="l_ustid" type="checkbox" value="Y">
325     <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
326   </div>
327 </div>
328 <div class="list col">
329   <h4>[% 'Shipping Address' | $T8 %]</h4>
330   <div>
331     <input name="l_shiptoname" id="l_shiptoname" type="checkbox"><label for="l_shiptoname">[% 'Name' | $T8 %]</label>
332   </div>
333   <div>
334     <input name="l_shiptodepartment_1" id="l_shiptodepartment_1" type="checkbox"><label for="l_shiptodepartment_1">[% 'Department 1' | $T8 %]</label>
335   </div>
336   <div>
337     <input name="l_shiptodepartment_2" id="l_shiptodepartment_2" type="checkbox"><label for="l_shiptodepartment_2">[% 'Department 2' | $T8 %]</label>
338   </div>
339   <div>
340     <input name="l_shiptostreet" id="l_shiptostreet" type="checkbox"><label for="l_shiptostreet">[% 'Street' | $T8 %]</label>
341   </div>
342   <div>
343     <input name="l_shiptozipcode" id="l_shiptozipcode" type="checkbox"><label for="l_shiptozipcode">[% 'Zipcode' | $T8 %]</label>
344   </div>
345   <div>
346     <input name="l_shiptocity" id="l_shiptocity" type="checkbox"><label for="l_shiptocity">[% 'City' | $T8 %]</label>
347   </div>
348   <div>
349     <input name="l_shiptocountry" id="l_shiptocountry" type="checkbox"><label for="l_shiptocountry">[% 'Country' | $T8 %]</label>
350   </div>
351 </div>
352 <div class="list col">
353   <h4>[% 'Taxes' | $T8 %]</h4>
354   <div>
355     <input name="l_tax" id="l_tax" type="checkbox" value="Y">
356     <label for="l_tax"> [% 'Tax' | $T8 %] </label>
357   </div>
358   <div>
359     [% L.checkbox_tag('l_taxzone', label => LxERP.t8('Steuersatz')) %]
360   </div>
361   <div>
362     <h4>[% 'Date' | $T8 %]</h4>
363   </div>
364   <div>
365     <input name="l_transdate" id="l_transdate" type="checkbox" value="Y" checked>
366     <label for="l_transdate"> [% 'Date' | $T8 %] </label>
367   </div>
368   <div>
369     <input name="l_reqdate" id="l_reqdate" type="checkbox" value="Y" checked>
370     <label for="l_reqdate"> [% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] </label>
371   </div>
372   [% IF type == 'sales_order' %]
373   <div>
374     <input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
375     <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
376   </div>
377   [% END %]
378 </div>
379 <div class="list col">
380   <h4>[% 'Customer & Order Information' | $T8 %]</h4>
381   <div>
382     <input name="l_department" id="l_department" type="checkbox" value="Y">
383     <label for="l_department"> [% 'Department' | $T8 %] </label>
384   </div>
385   <div>
386     <input name="l_shipvia" id="l_shipvia" type="checkbox" value="Y">
387     <label for="l_shipvia"> [% 'Ship via' | $T8 %] </label>
388   </div>
389   <div>
390     [% L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]
391   </div>
392   <div>
393     <input name="l_payment_terms" id="l_payment_terms" type="checkbox" value="Y">
394     <label for="l_payment_terms">[% 'Payment Terms' | $T8 %]</label>
395   </div>
396   <div>
397     <input name="l_transaction_description" id="l_transaction_description" type="checkbox" value="Y" [% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]>
398     <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
399   </div>
400   [% IF type == 'sales_quotation' %]
401   <div>
402     <input name="l_order_probability_expected_billing_date" id="l_order_probability_expected_billing_date" type="checkbox" value="Y">
403     <label for="l_order_probability_expected_billing_date"> [% 'Order probability & expected billing date' | $T8 %] </label>
404   </div>
405   [% END %]
406   <div>
407     <input name="l_items" id="l_items" type="checkbox" value="Y">
408     <label for="l_items">[% 'Positions' | $T8 %]</label>
409   </div>
410 </div>
411   [% IF CT_CUSTOM_VARIABLES.size %]
412 <div class="list col">
413   <h4>[% 'Custom Variables' | $T8 %] </h4><!-- PENDENT: Perl-Code anpassen (es werden keine DIVs gesetzt) -->
414   [% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]
415 </div>
416   [% END %]
417
418
419 </div>
420
421 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
422 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
423 <input type="hidden" name="action" value="orders">
424 </form>