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