Angebote: neue Felder Auftragswahrscheinlichkeit, Voraus. Abrechnungsdatum
[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 [%- IF type == 'sales_quotation' %]
126     <tr>
127      <th align="right">[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
128      <td>
129       [% L.date_tag('expected_billing_date_from', '' 'BL') %]
130      </td>
131      <th align="right">[% 'Expected billing date' | $T8 %] [% 'Bis' | $T8 %]</th>
132      <td>
133       [% L.date_tag('expected_billing_date_to', '' 'BL') %]
134      </td>
135     </tr>
136     <tr>
137      <th align="right">[% 'Order probability' | $T8 %]</th>
138      <td colspan="3">
139       [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %]
140       [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
141      </td>
142     </tr>
143 [%- END %]
144     <tr>
145      <th align="right">[% 'Include in Report' | $T8 %]</th>
146      <td colspan="5">
147       <table>
148        <tr>
149         <td>
150          <input type="checkbox" name="open" value="1" id="open" checked>
151          <label for="open">[% 'Open' | $T8 %]</label>
152         </td>
153         <td>
154          <input type="checkbox" name="closed" value="1" id="closed">
155          <label for="closed">[% 'Closed' | $T8 %]</label>
156         </td>
157        </tr>
158 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
159        <tr>
160         <td>
161          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
162          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
163         </td>
164         <td>
165          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
166          <label for="delivered">[% 'Delivery Order created' | $T8 %]</label>
167         </td>
168        </tr>
169 [%- END %]
170 [%- IF type == 'sales_order' %]
171        <tr>
172         <td>
173          [% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
174         </td>
175         <td>
176          [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
177         </td>
178        </tr>
179 [%- END %]
180        <tr>
181         <td>
182          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
183          <label for="l_id">[% 'ID' | $T8 %]</label>
184         </td>
185         <td>
186          <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
187          <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
188         </td>
189 [% IF is_order %]
190         <td>
191          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
192          <label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
193         </td>
194 [% END %]
195        </tr>
196        <tr>
197         <td>
198          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
199          <label for="l_transdate">[% 'Date' | $T8 %]</label>
200         </td>
201         <td>
202          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
203          <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
204         </td>
205        </tr>
206        <tr>
207         <td>
208          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
209          <label for="l_name">[% HTML.escape(vclabel) %]
210         </td>
211         <td>
212          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
213          <label for="l_employee">[% 'Employee' | $T8 %]</label>
214         </td>
215         <td>
216          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
217          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
218         </td>
219        </tr>
220        <tr>
221         <td>
222          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
223          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
224         </td>
225         <td>[%- L.checkbox_tag('l_taxzone',       label => LxERP.t8('Steuersatz'))     %]</td>
226         <td>[%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]</td>
227        </tr>
228        <tr>
229         <td>
230          <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
231          <label for="l_netamount">[% 'Amount' | $T8 %]</label>
232         </td>
233         <td>
234          <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
235          <label for="l_tax">[% 'Tax' | $T8 %]</label>
236         </td>
237         <td>
238          <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
239          <label for="l_amount">[% 'Total' | $T8 %]</label>
240         </td>
241        </tr>
242        <tr>
243         <td>
244          <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
245          <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
246         </td>
247         <td>
248          <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
249          <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
250         </td>
251        </tr>
252        <tr>
253         <td>
254          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
255          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
256         </td>
257         <td>
258          <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 %]>
259          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
260         </td>
261        </tr>
262        <tr>
263         <td>
264          <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
265          <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
266         </td>
267         <td>
268          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
269          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
270         </td>
271        </tr>
272 [% IF type == 'sales_quotation' %]
273        <tr>
274         <td colspan="2">
275          <input name="l_order_probability_expected_billing_date" id="l_order_probability_expected_billing_date" class="checkbox" type="checkbox" value="Y">
276          <label for="l_order_probability_expected_billing_date">[% 'Order probability & expected billing date' | $T8 %]</label>
277         </td>
278        </tr>
279 [%- END %]
280        <tr>
281         <td>
282          <input name="l_remaining_amount" id="l_remaining_amount" class="checkbox" type="checkbox" value="Y">
283          <label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
284         </td>
285         <td>
286          <input name="l_remaining_netamount" id="l_remaining_netamount" class="checkbox" type="checkbox" value="Y">
287          <label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
288         </td>
289        </tr>
290        <tr>
291         <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
292        </tr>
293        <tr>
294         <td>
295          <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
296          <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
297         </td>
298         <td>
299          <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
300          <label for="l_country">[% 'Country' | $T8 %]</label>
301         </td>
302         <td>
303          <input name="l_ustid"  id="l_ustid" class="checkbox" type="checkbox" value="Y">
304          <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
305         </td>
306        </tr>
307 [%- IF type == 'sales_order' %]
308        <tr><td colspan="3"><hr></td></tr>
309 [%- END %]
310       </table>
311      </td>
312     </tr>
313    </table>
314   </td>
315  </tr>
316 </table>
317
318 <br>
319 <input type="hidden" name="nextsub" value="orders">
320 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
321 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
322 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
323 </form>