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