b7a24913a4460463e581c6daabf5b63b29cf4b88
[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         = 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         = 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 colspan="3"><input name="transaction_description" style="width: 250px"></td>
85     </tr>
86     <tr>
87      <th align="right">[% 'Project Number' | $T8 %]</th>
88      <td colspan="3">
89             [%- INCLUDE 'generic/multibox.html'
90                  name          =  vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
91                  style         = "width: 250px",
92                  DATA          =  ALL_PROJECTS,
93                  id_key        = 'id',
94                  label_key     = 'projectnumber',
95                  limit         = vclimit,
96                  show_empty    = 1,
97                  allow_textbox = 1,
98             -%]
99      </td>
100     </tr>
101     [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %]
102     <tr>
103      <th align="right" nowrap>[% vctypelabel %]</th>
104      <td colspan="3">
105       [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
106      </td>
107     </tr>
108     [%- END %]
109     <tr>
110      <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
111      <td>
112        [% L.date_tag('transdatefrom') %]
113      </td>
114      <th align="right">[% 'Bis' | $T8 %]</th>
115      <td>
116       [% L.date_tag('transdateto') %]
117      </td>
118     </tr>
119     <tr>
120      <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
121      <td>
122        [% L.date_tag('reqdatefrom') %]
123      </td>
124      <th align="right">[% 'Bis' | $T8 %]</th>
125      <td>
126        [% L.date_tag('reqdateto') %]
127      </td>
128     </tr>
129
130     [%- IF type == 'sales_order' %]
131     <tr>
132      <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
133      <td>
134        [% L.date_tag('insertdatefrom') %]
135      </td>
136      <th align="right">[% 'Bis' | $T8 %]</th>
137      <td>
138        [% L.date_tag('insertdateto') %]
139      </td>
140     </tr>
141     [%- END %]
142
143 [%- IF type == 'sales_quotation' %]
144     <tr>
145      <th align="right">[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
146      <td>
147       [% L.date_tag('expected_billing_date_from', '' 'BL') %]
148      </td>
149      <th align="right">[% 'Expected billing date' | $T8 %] [% 'Bis' | $T8 %]</th>
150      <td>
151       [% L.date_tag('expected_billing_date_to', '' 'BL') %]
152      </td>
153     </tr>
154     <tr>
155      <th align="right">[% 'Order probability' | $T8 %]</th>
156      <td colspan="3">
157       [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %]
158       [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
159      </td>
160     </tr>
161 [%- END %]
162
163 [%- IF CT_CUSTOM_VARIABLES.size %]
164     <tr>
165       <td></td>
166       <td colspan=4 align=left><b>[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]</td>
167     </tr>
168     [% CT_CUSTOM_VARIABLES_FILTER_CODE %]
169 [%- END %]
170
171     <tr>
172      <th align="right">[% 'Include in Report' | $T8 %]</th>
173      <td colspan="5">
174       <table>
175        <tr>
176         <td>
177          <input type="checkbox" name="open" value="1" id="open" checked>
178          <label for="open">[% 'Open' | $T8 %]</label>
179         </td>
180         <td>
181          <input type="checkbox" name="closed" value="1" id="closed">
182          <label for="closed">[% 'Closed' | $T8 %]</label>
183         </td>
184        </tr>
185 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
186        <tr>
187         <td>
188          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
189          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
190         </td>
191         <td>
192          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
193          <label for="delivered">[% 'Delivery Order(s) for full qty created' | $T8 %]</label>
194         </td>
195        </tr>
196 [%- END %]
197 [%- IF type == 'sales_order' %]
198        <tr>
199         <td>
200          [% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
201         </td>
202         <td>
203          [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
204         </td>
205        </tr>
206 [%- END %]
207        <tr>
208         <td>
209          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
210          <label for="l_id">[% 'ID' | $T8 %]</label>
211         </td>
212         <td>
213          <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
214          <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
215         </td>
216 [% IF is_order %]
217         <td>
218          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
219          <label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
220         </td>
221 [% END %]
222        </tr>
223        <tr>
224         <td>
225          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
226          <label for="l_transdate">[% 'Date' | $T8 %]</label>
227         </td>
228         <td>
229          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
230          <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
231         </td>
232         [%- IF type == 'sales_order' %]
233         <td>
234           <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
235           <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
236         </td>
237         [%- END %]
238        </tr>
239        <tr>
240         <td>
241          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
242          <label for="l_name">[% HTML.escape(vclabel) %]
243         </td>
244         <td>
245          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
246          <label for="l_employee">[% 'Employee' | $T8 %]</label>
247         </td>
248         <td>
249          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
250          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
251         </td>
252        </tr>
253        <tr>
254         <td>
255          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
256          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
257         </td>
258         <td>[%- L.checkbox_tag('l_taxzone',       label => LxERP.t8('Steuersatz'))     %]</td>
259         <td>[%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]</td>
260        </tr>
261        <tr>
262         <td>
263          <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
264          <label for="l_netamount">[% 'Amount' | $T8 %]</label>
265         </td>
266         <td>
267          <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
268          <label for="l_tax">[% 'Tax' | $T8 %]</label>
269         </td>
270         <td>
271          <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
272          <label for="l_amount">[% 'Total' | $T8 %]</label>
273         </td>
274        </tr>
275        <tr>
276         <td>
277          <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
278          <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
279         </td>
280         <td>
281          <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
282          <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
283         </td>
284         <td>
285          <input name="l_payment_terms" id="l_payment_terms" class="checkbox" type="checkbox" value="Y">
286          <label for="l_payment_terms">[% 'Payment Terms' | $T8 %]</label>
287         </td>
288        </tr>
289        <tr>
290         <td>
291          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
292          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
293         </td>
294         <td>
295          <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 %]>
296          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
297         </td>
298        </tr>
299        <tr>
300         <td>
301          <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
302          <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
303         </td>
304         <td>
305          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
306          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
307         </td>
308        </tr>
309 [% IF type == 'sales_quotation' %]
310        <tr>
311         <td colspan="2">
312          <input name="l_order_probability_expected_billing_date" id="l_order_probability_expected_billing_date" class="checkbox" type="checkbox" value="Y">
313          <label for="l_order_probability_expected_billing_date">[% 'Order probability & expected billing date' | $T8 %]</label>
314         </td>
315        </tr>
316 [%- END %]
317        <tr>
318         <td>
319          <input name="l_remaining_amount" id="l_remaining_amount" class="checkbox" type="checkbox" value="Y">
320          <label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
321         </td>
322         <td>
323          <input name="l_remaining_netamount" id="l_remaining_netamount" class="checkbox" type="checkbox" value="Y">
324          <label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
325         </td>
326        </tr>
327        <tr>
328         <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
329        </tr>
330        <tr>
331         <td>
332          <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
333          <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
334         </td>
335         <td>
336          <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
337          <label for="l_country">[% 'Country' | $T8 %]</label>
338         </td>
339         <td>
340          <input name="l_ustid"  id="l_ustid" class="checkbox" type="checkbox" value="Y">
341          <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
342         </td>
343        </tr>
344
345       [% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]
346
347 [%- IF type == 'sales_order' %]
348        <tr><td colspan="3"><hr></td></tr>
349 [%- END %]
350       </table>
351      </td>
352     </tr>
353    </table>
354   </td>
355  </tr>
356 </table>
357
358 <br>
359 <input type="hidden" name="nextsub" value="orders">
360 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
361 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
362 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
363 </form>