Angebote/Aufträge: Suche nach Artikelnummer/-beschreibung in Positionen
[kivitendo-erp.git] / templates / webpages / oe / search.html
1 [%- USE HTML %]
2 [%- USE T8 %]
3 [%- USE LxERP %]
4 [%- USE L %]
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
11 <form method="post" action="oe.pl">
12
13 <table width="100%">
14  <tr>
15   <td>
16    <table>
17     <tr>
18      <th align="right">[% HTML.escape(vclabel) %]</th>
19      <td colspan="3">
20             [%- INCLUDE 'generic/multibox.html'
21                  name          = vc,
22                  default       = vc == 'customer' ? oldcustomer : oldvendor,
23                  style         = 'width: 250px',
24                  DATA          = ALL_VC,
25                  id_sub        = 'vc_keys',
26                  label_key     = 'name',
27                  select        = vc_select,
28                  limit         = MYCONFIG.vclimit,
29                  show_empty    = 1,
30                  allow_textbox = 1,
31                  class         = 'initial_focus',
32                  -%]
33      </td>
34     </tr>
35     <tr>
36      <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
37      <td colspan="3">[% L.input_tag("cp_name", '', style="width: 250px") %]</td>
38     </tr>
39 [%- IF ALL_DEPARTMENTS.size %]
40     <tr>
41      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
42      <td colspan="3">
43             [%- INCLUDE 'generic/multibox.html'
44                  name          = 'department_id',
45                  style         = 'width: 250px',
46                  DATA          = ALL_DEPARTMENTS,
47                  id_key        = 'id',
48                  label_key     = 'description',
49                  limit         = MYCONFIG.vclimit,
50                  show_empty    = 1,
51                  allow_textbox = 1,
52             -%]
53      </td>
54     </tr>
55 [%- END %]
56     <tr>
57      <th align="right">[% HTML.escape(ordlabel) %]</th>
58      <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
59     </tr>
60 [% IF is_order %]
61     <tr>
62      <th align="right">[% LxERP.t8("Customer Order Number") %]</th>
63      <td colspan="3">[% L.input_tag("cusordnumber", '', style="width: 250px") %]</td>
64     </tr>
65 [% END %]
66     <tr>
67      <th align="right">[% 'Employee' | $T8 %]</th>
68      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
69     </tr>
70     <tr>
71      <th align="right">[% 'Salesman' | $T8 %]</th>
72      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
73     </tr>
74     <tr>
75      <th align="right">[% 'Steuersatz' | $T8 %]</th>
76      <td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style='width: 250px') %]</td>
77     </tr>
78     <tr>
79      <th align="right">[% 'Shipping Point' | $T8 %]</th>
80      <td colspan="3">[% L.input_tag('shippingpoint', '', style='width:250px') %]</td>
81     </tr>
82     <tr>
83      <th align="right">[% 'Transaction description' | $T8 %]</th>
84      <td><input name="transaction_description" style="width: 250px"></td>
85
86      <th align="right">[% 'Part Description' | $T8 %]</th>
87      <td><input name="parts_description" style="width: 250px"></td>
88     </tr>
89     <tr>
90      <th align="right">[% 'Project Number' | $T8 %]</th>
91      <td>
92             [%- INCLUDE 'generic/multibox.html'
93                  name          =  MYCONFIG.vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
94                  style         = "width: 250px",
95                  DATA          =  ALL_PROJECTS,
96                  id_key        = 'id',
97                  label_key     = 'projectnumber',
98                  limit         = MYCONFIG.vclimit,
99                  show_empty    = 1,
100                  allow_textbox = 1,
101             -%]
102      </td>
103
104      <th align="right">[% 'Part Number' | $T8 %]</th>
105      <td><input name="parts_partnumber" style="width: 250px"></td>
106     </tr>
107     [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %]
108     <tr>
109      <th align="right" nowrap>[% vctypelabel %]</th>
110      <td colspan="3">
111       [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
112      </td>
113     </tr>
114     [%- END %]
115     <tr>
116      <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
117      <td>
118        [% L.date_tag('transdatefrom') %]
119      </td>
120      <th align="right">[% 'Bis' | $T8 %]</th>
121      <td>
122       [% L.date_tag('transdateto') %]
123      </td>
124     </tr>
125     <tr>
126      <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
127      <td>
128        [% L.date_tag('reqdatefrom') %]
129      </td>
130      <th align="right">[% 'Bis' | $T8 %]</th>
131      <td>
132        [% L.date_tag('reqdateto') %]
133      </td>
134     </tr>
135
136     [%- IF type == 'sales_order' %]
137     <tr>
138      <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
139      <td>
140        [% L.date_tag('insertdatefrom') %]
141      </td>
142      <th align="right">[% 'Bis' | $T8 %]</th>
143      <td>
144        [% L.date_tag('insertdateto') %]
145      </td>
146     </tr>
147     [%- END %]
148
149 [%- IF type == 'sales_quotation' %]
150     <tr>
151      <th align="right">[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
152      <td>
153       [% L.date_tag('expected_billing_date_from', '' 'BL') %]
154      </td>
155      <th align="right">[% 'Expected billing date' | $T8 %] [% 'Bis' | $T8 %]</th>
156      <td>
157       [% L.date_tag('expected_billing_date_to', '' 'BL') %]
158      </td>
159     </tr>
160     <tr>
161      <th align="right">[% 'Order probability' | $T8 %]</th>
162      <td colspan="3">
163       [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %]
164       [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
165      </td>
166     </tr>
167 [%- END %]
168
169 [%- IF CT_CUSTOM_VARIABLES.size %]
170     <tr>
171       <td></td>
172       <td colspan=4 align=left><b>[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]</td>
173     </tr>
174     [% CT_CUSTOM_VARIABLES_FILTER_CODE %]
175 [%- END %]
176
177     <tr>
178      <th align="right">[% 'Include in Report' | $T8 %]</th>
179      <td colspan="5">
180       <table>
181        <tr>
182         <td>
183          <input type="checkbox" name="open" value="1" id="open" checked>
184          <label for="open">[% 'Open' | $T8 %]</label>
185         </td>
186         <td>
187          <input type="checkbox" name="closed" value="1" id="closed">
188          <label for="closed">[% 'Closed' | $T8 %]</label>
189         </td>
190        </tr>
191 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
192        <tr>
193         <td>
194          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
195          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
196         </td>
197         <td>
198          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
199          <label for="delivered">[% 'Delivery Order(s) for full qty created' | $T8 %]</label>
200         </td>
201        </tr>
202 [%- END %]
203 [%- IF type == 'sales_order' %]
204        <tr>
205         <td>
206          [% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
207         </td>
208         <td>
209          [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
210         </td>
211        </tr>
212 [%- END %]
213        <tr>
214         <td>
215          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
216          <label for="l_id">[% 'ID' | $T8 %]</label>
217         </td>
218         <td>
219          <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
220          <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
221         </td>
222 [% IF is_order %]
223         <td>
224          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
225          <label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
226         </td>
227 [% END %]
228        </tr>
229        <tr>
230         <td>
231          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
232          <label for="l_transdate">[% 'Date' | $T8 %]</label>
233         </td>
234         <td>
235          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
236          <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
237         </td>
238         [%- IF type == 'sales_order' %]
239         <td>
240           <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
241           <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
242         </td>
243         [%- END %]
244        </tr>
245        <tr>
246         <td>
247          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
248          <label for="l_name">[% HTML.escape(vclabel) %]
249         </td>
250         <td>
251          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
252          <label for="l_employee">[% 'Employee' | $T8 %]</label>
253         </td>
254         <td>
255          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
256          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
257         </td>
258        </tr>
259        <tr>
260         <td>
261          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
262          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
263         </td>
264         <td>[%- L.checkbox_tag('l_taxzone',       label => LxERP.t8('Steuersatz'))     %]</td>
265         <td>[%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]</td>
266        </tr>
267        <tr>
268         <td>
269          <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
270          <label for="l_netamount">[% 'Amount' | $T8 %]</label>
271         </td>
272         <td>
273          <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
274          <label for="l_tax">[% 'Tax' | $T8 %]</label>
275         </td>
276         <td>
277          <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
278          <label for="l_amount">[% 'Total' | $T8 %]</label>
279         </td>
280        </tr>
281        <tr>
282         <td>
283          <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
284          <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
285         </td>
286         <td>
287          <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
288          <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
289         </td>
290         <td>
291          <input name="l_payment_terms" id="l_payment_terms" class="checkbox" type="checkbox" value="Y">
292          <label for="l_payment_terms">[% 'Payment Terms' | $T8 %]</label>
293         </td>
294        </tr>
295        <tr>
296         <td>
297          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
298          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
299         </td>
300         <td>
301          <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 %]>
302          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
303         </td>
304        </tr>
305        <tr>
306         <td>
307          <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
308          <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
309         </td>
310         <td>
311          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
312          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
313         </td>
314        </tr>
315 [% IF type == 'sales_quotation' %]
316        <tr>
317         <td colspan="2">
318          <input name="l_order_probability_expected_billing_date" id="l_order_probability_expected_billing_date" class="checkbox" type="checkbox" value="Y">
319          <label for="l_order_probability_expected_billing_date">[% 'Order probability & expected billing date' | $T8 %]</label>
320         </td>
321        </tr>
322 [%- END %]
323        <tr>
324         <td>
325          <input name="l_remaining_amount" id="l_remaining_amount" class="checkbox" type="checkbox" value="Y">
326          <label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
327         </td>
328         <td>
329          <input name="l_remaining_netamount" id="l_remaining_netamount" class="checkbox" type="checkbox" value="Y">
330          <label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
331         </td>
332        </tr>
333        <tr>
334         <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
335        </tr>
336        <tr>
337         <td>
338          <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
339          <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
340         </td>
341         <td>
342          <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
343          <label for="l_country">[% 'Country' | $T8 %]</label>
344         </td>
345         <td>
346          <input name="l_ustid"  id="l_ustid" class="checkbox" type="checkbox" value="Y">
347          <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
348         </td>
349        </tr>
350
351       [% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]
352
353 [%- IF type == 'sales_order' %]
354        <tr><td colspan="3"><hr></td></tr>
355 [%- END %]
356       </table>
357      </td>
358     </tr>
359    </table>
360   </td>
361  </tr>
362 </table>
363
364 <br>
365 <input type="hidden" name="nextsub" value="orders">
366 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
367 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
368 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
369 </form>