Die wichtigsten Einstellungen oben darstellen
[kivitendo-erp.git] / templates / webpages / vk / search_invoice.html
1 [%- USE T8 %]
2 [%- USE L %]
3
4 <form method=post name="search_invoice" action=[% script %]>
5   <input type="hidden" name="sort" value="transdate">
6   <input type=hidden name=nextsub value=[% nextsub %]>
7
8   <div class="listtop">[% title %]</div>
9
10
11   <table>
12
13     <tr>
14       <td align="right">[% 'Main sorting' | $T8 %]</td>
15       <td>
16         <select name="mainsort" id="mainsort">
17           <option value="description">[% 'Part' | $T8 %]</option>
18           <option value="customername">[% 'Customer' | $T8 %]</option>
19           <option value="country">[% 'Country' | $T8 %]</option>
20           <option value="partsgroup">[% 'Group' | $T8 %]</option>
21           <option value="business">[% 'Customer type' | $T8 %]</option>
22           <option value="salesman" selected="selected">[% 'Salesman' | $T8 %]</option>
23           <option value="month">[% 'Month' | $T8 %]</option>
24         </select>
25       </td>
26       <td align=left><input name="l_headers_mainsort" class=checkbox type=checkbox value=Y checked> [% 'Heading' | $T8 %]</td>
27       <td align=left><input name="l_subtotal_mainsort" class=checkbox type=checkbox value=Y checked> [% 'Subtotal' | $T8 %]</td>
28     </tr>
29
30     <tr>
31       <td align="right">[% 'Secondary sorting' | $T8 %]</td>
32       <td>
33         <select name="subsort" id="subsort">
34           <option value="description">[% 'Part' | $T8 %]</option>
35           <option value="customername">[% 'Customer' | $T8 %]</option>
36           <option value="country">[% 'Country' | $T8 %]</option>
37           <option value="partsgroup">[% 'Group' | $T8 %]</option>
38           <option value="business">[% 'Customer type' | $T8 %]</option>
39           <option value="salesman">[% 'Salesman' | $T8 %]</option>
40           <option value="month" selected="selected">[% 'Month' | $T8 %]</option>
41         </select>
42       </td>
43       <td align=left><input name="l_headers_subsort" class=checkbox type=checkbox value=Y checked> [% 'Heading' | $T8 %]</td>
44       <td align=left><input name="l_subtotal_subsort" class=checkbox type=checkbox value=Y checked> [% 'Subtotal' | $T8 %]</td>
45     </tr>
46
47     <tr>
48       <th align="right">[% 'Item mode' | $T8 %]</th>
49       <td colspan="3" align=left><input name="l_parts" class=checkbox type=checkbox value=Y> ([%'Show items from invoices individually' | $T8 %]) </td>
50     </tr>
51
52     <tr>
53       <th align="right">[% 'Total sum' | $T8 %]</th>
54       <td colspan="1" align=left><input name="l_total" class=checkbox type=checkbox value=Y checked></td>
55       <td align="right" nowrap>[% 'Decimalplaces' | $T8 %]: </td>
56       <td colspan="2"><input name="decimalplaces" size="2" value="2"></td>
57     </tr>
58
59     <tr>
60       <td></td>
61       <td colspan="7">
62         <hr size="1" noshade="">
63       </td>
64     <tr>
65
66     <tr>
67       <th align=right>[% 'Customer' | $T8 %]</th>
68       <td>
69         [%- INCLUDE 'generic/multibox.html'
70           name          = 'customer',
71           default       = oldcustomer,
72           style         = 'width: 250px',
73           DATA          = ALL_VC,
74           id_sub        = 'vc_keys',
75           label_key     = 'name',
76           select        = vc_select,
77           limit         = vclimit,
78           show_empty    = 1,
79           allow_textbox = 1,
80         -%]
81       </td>
82
83       <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
84       <td>
85         <input name="customernumber" size="20">
86       </td>
87     </tr>
88
89     <tr>
90       <th align=right nowrap>[% 'Department' | $T8 %]</th>
91       <td>
92         [%- INCLUDE 'generic/multibox.html'
93           name          = 'department',
94           style         = 'width: 250px',
95           DATA          = ALL_DEPARTMENTS,
96           id_key        = 'id',
97           label_key     = 'description',
98           show_empty    = 1,
99           allow_textbox = 0,
100         -%]
101       </td>
102
103       <th align="right">[% 'Project Number' | $T8 %]</th>
104       <td>
105         [%- INCLUDE 'generic/multibox.html'
106           name          =  'project_id',
107           style         = "width: 250px",
108           DATA          =  ALL_PROJECTS,
109           id_key        = 'id',
110           label_key     = 'projectnumber',
111           limit         = vclimit,
112           show_empty    = 1,
113           allow_textbox = 0,
114         -%]
115       </td>
116     </tr>
117
118     <tr>
119       <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
120       <td><input name="partnumber" size="20"></td>
121     </tr>
122
123     <tr>
124       <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
125       <td>
126         <input name="description" size="40">
127       </td>
128     </tr>
129
130     <tr>
131       <th align="right">[% 'Group' | $T8 %]</th>
132       <td>
133         [%- INCLUDE 'generic/multibox.html'
134           name          = 'partsgroup_id',
135           style         = 'width: 250px',
136           DATA          =  ALL_PARTSGROUPS,
137           id_key        = 'id',
138           label_key     = 'partsgroup',
139           show_empty    = 1,
140           allow_textbox = 0,
141         -%]
142       </td>
143
144       <td align="right" nowrap>[% 'Country' | $T8 %]</td>
145       <td><input name="country" size="20"></td>
146     </tr>
147
148     <tr>
149       <th align="right">[% 'Employee' | $T8 %]</th>
150       <td>
151         [%- INCLUDE 'generic/multibox.html'
152           name          = 'employee_id',
153           style         = 'width: 250px',
154           DATA          =  ALL_EMPLOYEES,
155           id_key        = 'id',
156           label_sub     = 'employee_labels',
157           limit         = vclimit,
158           show_empty    = 1,
159           allow_textbox = 0,
160           default       = ' ',
161         -%]
162       </td>
163
164       <th align="right">[% 'Salesman' | $T8 %]</th>
165       <td>
166         [%- INCLUDE 'generic/multibox.html'
167           name          = 'salesman_id',
168           style         = 'width: 250px',
169           DATA          =  ALL_SALESMEN,
170           id_key        = 'id',
171           label_sub     = 'salesman_labels',
172           limit         = vclimit,
173           show_empty    = 1,
174           allow_textbox = 0,
175         -%]
176       </td>
177     </tr>
178
179     <tr>
180       <th align="right">[% 'Customer type' | $T8 %]</th>
181       <td>
182         [%- INCLUDE 'generic/multibox.html'
183            name          =  'business_id',
184            style         = "width: 250px",
185            DATA          =  ALL_BUSINESS_TYPES,
186            id_key        = 'id',
187            label_key     = 'description',
188            limit         = vclimit,
189            show_empty    = 1,
190            allow_textbox = 0,
191         -%]
192       </td>
193     </tr>
194
195     <tr>
196       <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
197       <td>
198         [% L.date_tag('transdatefrom') %]
199       </td>
200
201       <th align=right>[% 'Bis' | $T8 %]</th>
202
203       <td>
204         [% L.date_tag('transdateto') %]
205       </td>
206     </tr>
207
208
209     <tr>
210       <td></td>
211       <th colspan="4" align="left">
212         [% 'Filter for customer variables' | $T8 %]
213       </th>
214     </tr>
215     [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
216
217
218     <tr>
219       <td></td>
220       <th colspan="4" align="left">
221         [% 'Filter for item variables' | $T8 %]
222       </th>
223     </tr>
224     [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
225
226
227
228     <tr>
229       <td></td>
230       <td colspan="7">
231         <hr size="1" noshade="">
232       </td>
233     <tr>
234
235
236
237     <tr>
238       <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
239
240       <td colspan="3">
241         <table>
242           <tr>
243             <td colspan="4">
244               [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
245             </td>
246           </tr>
247
248           <tr>
249             <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
250             <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
251             <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
252             <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
253           </tr>
254
255           <tr>
256             <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
257             <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
258             <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
259             <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
260           </tr>
261
262           <tr>
263             <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
264             <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
265             <td></td>
266             <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
267           </tr>
268
269           <tr>
270             <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
271           </tr>
272
273           <tr>
274             <td colspan="7">&nbsp;</td>
275           </tr>
276
277           <tr>
278             <td colspan="4" align="left">
279               [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
280             </td>
281           </tr>
282
283           <tr>
284             <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
285             <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
286             <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
287             <td align=left><input name="l_transdate" class=checkbox type=checkbox value=Y>[% 'Invdate' | $T8 %]</td>
288           </tr>
289
290           <tr>
291             <td align=left><input name="l_parts_unit" class=checkbox type=checkbox value=Y>[% 'Base unit' | $T8 %]</td>
292             <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Group' | $T8 %]</td>
293             <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
294             <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
295           </tr>
296
297           <tr>
298             <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
299             <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
300             <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
301             <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
302           </tr>
303
304           <tr>
305             <th colspan="4" align="left">
306               [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
307             </th>
308           </tr>
309           [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
310
311           <tr>
312             <th colspan="4" align="left">
313               [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
314             </th>
315           </tr>
316           [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
317
318         </table>
319       </td>
320     </tr>
321
322   </table>
323
324   <hr size="3" noshade="">
325
326   <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
327
328   <br><br>
329
330 </form>
331
332 <script type="text/javascript">
333 <!--
334 $(document).ready(function(){
335   $('customer').focus();
336 })
337 //-->
338 </script>