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