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