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