8d76ecb5986ccab7d90deffc9e1c0eb1e2eb7738
[kivitendo-erp.git] / templates / webpages / oe / search.html
1 [%- USE HTML %]
2 [%- USE T8 %]
3 [%- USE LxERP %]
4 [%- USE L %]
5 [%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
6 [%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
7 [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
8
9 <form method="post" action="oe.pl">
10
11  <p><div class="listtop">[% HTML.escape(title) %]</div></p>
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 [%- IF ALL_DEPARTMENTS.size %]
36     <tr>
37      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
38      <td colspan="3">
39             [%- INCLUDE 'generic/multibox.html'
40                  name          = 'department_id',
41                  style         = 'width: 250px',
42                  DATA          = ALL_DEPARTMENTS,
43                  id_key        = 'id',
44                  label_key     = 'description',
45                  limit         = vclimit,
46                  show_empty    = 1,
47                  allow_textbox = 1,
48             -%]
49      </td>
50     </tr>
51 [%- END %]
52     <tr>
53      <th align="right">[% HTML.escape(ordlabel) %]</th>
54      <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
55     </tr>
56     <tr>
57      <th align="right">[% 'Employee' | $T8 %]</th>
58      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
59     </tr>
60     <tr>
61      <th align="right">[% 'Salesman' | $T8 %]</th>
62      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
63     </tr>
64     <tr>
65      <th align="right">[% 'Steuersatz' | $T8 %]</th>
66      <td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style='width: 250px') %]</td>
67     </tr>
68     <tr>
69      <th align="right">[% 'Shipping Point' | $T8 %]</th>
70      <td colspan="3">[% L.input_tag('shippingpoint', '', style='width:250px') %]</td>
71     </tr>
72     <tr>
73      <th align="right">[% 'Transaction description' | $T8 %]</th>
74      <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
75     </tr>
76     <tr>
77      <th align="right">[% 'Project Number' | $T8 %]</th>
78      <td colspan="3">
79             [%- INCLUDE 'generic/multibox.html'
80                  name          =  vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
81                  style         = "width: 250px",
82                  DATA          =  ALL_PROJECTS,
83                  id_key        = 'id',
84                  label_key     = 'projectnumber',
85                  limit         = vclimit,
86                  show_empty    = 1,
87                  allow_textbox = 1,
88             -%]
89      </td>
90     </tr>
91     [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %]
92     <tr>
93      <th align="right" nowrap>[% vctypelabel %]</th>
94      <td colspan="3">
95       [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
96      </td>
97     </tr>
98     [%- END %]
99     <tr>
100      <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
101      <td>
102        [% L.date_tag('transdatefrom') %]
103      </td>
104      <th align="right">[% 'Bis' | $T8 %]</th>
105      <td>
106       [% L.date_tag('transdateto') %]
107      </td>
108     </tr>
109     <tr>
110      <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
111      <td>
112        [% L.date_tag('reqdatefrom') %]
113      </td>
114      <th align="right">[% 'Bis' | $T8 %]</th>
115      <td>
116        [% L.date_tag('reqdateto') %]
117      </td>
118     </tr>
119     <tr>
120      <th align="right">[% 'Include in Report' | $T8 %]</th>
121      <td colspan="5">
122       <table>
123        <tr>
124         <td>
125          <input type="checkbox" name="open" value="1" id="open" checked>
126          <label for="open">[% 'Open' | $T8 %]</label>
127         </td>
128         <td>
129          <input type="checkbox" name="closed" value="1" id="closed">
130          <label for="closed">[% 'Closed' | $T8 %]</label>
131         </td>
132        </tr>
133 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
134        <tr>
135         <td>
136          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
137          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
138         </td>
139         <td>
140          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
141          <label for="delivered">[% 'Delivery Order created' | $T8 %]</label>
142         </td>
143        </tr>
144 [%- END %]
145 [%- IF type == 'sales_order' %]
146        <tr>
147         <td>
148          [% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
149         </td>
150         <td>
151          [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
152         </td>
153        </tr>
154 [%- END %]
155        <tr>
156         <td>
157          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
158          <label for="l_id">[% 'ID' | $T8 %]</label>
159         </td>
160         <td>
161          <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
162          <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
163         </td>
164        </tr>
165        <tr>
166         <td>
167          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
168          <label for="l_transdate">[% 'Date' | $T8 %]</label>
169         </td>
170         <td>
171          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
172          <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
173         </td>
174        </tr>
175        <tr>
176         <td>
177          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
178          <label for="l_name">[% HTML.escape(vclabel) %]
179         </td>
180         <td>
181          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
182          <label for="l_employee">[% 'Employee' | $T8 %]</label>
183         </td>
184         <td>
185          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
186          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
187         </td>
188        </tr>
189        <tr>
190         <td>
191          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
192          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
193         </td>
194         <td>[%- L.checkbox_tag('l_taxzone',       label => LxERP.t8('Steuersatz'))     %]</td>
195         <td>[%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]</td>
196        </tr>
197        <tr>
198         <td>
199          <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
200          <label for="l_netamount">[% 'Amount' | $T8 %]</label>
201         </td>
202         <td>
203          <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
204          <label for="l_tax">[% 'Tax' | $T8 %]</label>
205         </td>
206         <td>
207          <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
208          <label for="l_amount">[% 'Total' | $T8 %]</label>
209         </td>
210        </tr>
211        <tr>
212         <td>
213          <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
214          <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
215         </td>
216         <td>
217          <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
218          <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
219         </td>
220        </tr>
221        <tr>
222         <td>
223          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
224          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
225         </td>
226         <td>
227          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
228          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
229         </td>
230        </tr>
231        <tr>
232         <td>
233          <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
234          <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
235         </td>
236         <td>
237          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
238          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
239         </td>
240        </tr>
241        <tr>
242         <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
243        </tr>
244        <tr>
245         <td>
246          <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
247          <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
248         </td>
249         <td>
250          <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
251          <label for="l_country">[% 'Country' | $T8 %]</label>
252         </td>
253         <td>
254          <input name="l_ustid"  id="l_ustid" class="checkbox" type="checkbox" value="Y">
255          <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
256         </td>
257        </tr>
258 [%- IF type == 'sales_order' %]
259        <tr><td colspan="3"><hr></td></tr>
260 [%- END %]
261       </table>
262      </td>
263     </tr>
264    </table>
265   </td>
266  </tr>
267 </table>
268
269 <br>
270 <input type="hidden" name="nextsub" value="orders">
271 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
272 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
273 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
274 </form>