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