Neue Verkaufsberichtvariante mit Umsatz-Sortierung
[kivitendo-erp.git] / templates / webpages / vk / search_invoice_top.html
1 [%- USE T8 %]
2 [%- USE L %]
3
4 <form method=post name="search_invoice_top" action=[% script %]>
5   <input type="hidden" name="sort" value="transdate">
6   <input type="hidden" name="l_sort_by_total" value="Y">
7   <input type=hidden name=nextsub value=[% nextsub %]>
8
9   <div class="listtop">[% title %]</div>
10
11
12   <table>
13
14     <tr>
15       <td align="right">[% 'Main sorting' | $T8 %]</td>
16       <td>
17         <select name="topsortmain" id="topsortmain">
18           <option value="description">[% 'Part' | $T8 %]</option>
19           <option value="customername" selected="selected">[% 'Customer' | $T8 %]</option>
20           <option value="country">[% 'Country' | $T8 %]</option>
21           <option value="partsgroup">[% 'Group' | $T8 %]</option>
22           <option value="business">[% 'Customer type' | $T8 %]</option>
23           <option value="salesman">[% 'Salesman' | $T8 %]</option>
24           <option value="month">[% 'Month' | $T8 %]</option>
25         </select>
26     </tr>
27     <tr>
28       <td align="right">[% 'Sort By' | $T8 %]</td>
29       <td>
30         <select name="topsorttype" id="topsorttype">
31           <option value="sellprice_total" selected="selected">[% 'Total revenue' | $T8 %]</option>
32           <option value="marge_total">[% 'Sales margin' | $T8 %]</option>
33           <option value="qty">[% 'Quantity' | $T8 %]</option>
34           <option value="weight">[% 'Weight' | $T8 %]</option>
35         </select>
36       </td>
37       </td>
38     </tr>
39
40     <tr>
41       <th align="right">[% 'Total sum' | $T8 %]</th>
42       <td colspan="1" align=left><input name="l_total" class=checkbox type=checkbox value=Y checked></td>
43       <td align="right" nowrap>[% 'Decimalplaces' | $T8 %]: </td>
44       <td colspan="2"><input name="decimalplaces" size="2" value="2"></td>
45     </tr>
46
47
48     <tr>
49       <td></td>
50       <td colspan="7">
51         <hr size="1" noshade="">
52       </td>
53     <tr>
54
55     <tr>
56       <th align=right>[% 'Customer' | $T8 %]</th>
57       <td>
58         [%- INCLUDE 'generic/multibox.html'
59           name          = 'customer',
60           default       = oldcustomer,
61           style         = 'width: 250px',
62           DATA          = ALL_VC,
63           id_sub        = 'vc_keys',
64           label_key     = 'name',
65           select        = vc_select,
66           limit         = vclimit,
67           show_empty    = 1,
68           allow_textbox = 1,
69           class         = 'initial_focus',
70         -%]
71       </td>
72
73       <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
74       <td>
75         <input name="customernumber" size="20">
76       </td>
77     </tr>
78
79     <tr>
80       <th align=right nowrap>[% 'Department' | $T8 %]</th>
81       <td>
82         [%- INCLUDE 'generic/multibox.html'
83           name          = 'department',
84           style         = 'width: 250px',
85           DATA          = ALL_DEPARTMENTS,
86           id_key        = 'id',
87           label_key     = 'description',
88           show_empty    = 1,
89           allow_textbox = 0,
90         -%]
91       </td>
92
93       <th align="right">[% 'Project Number' | $T8 %]</th>
94       <td>
95         [%- INCLUDE 'generic/multibox.html'
96           name          =  'project_id',
97           style         = "width: 250px",
98           DATA          =  ALL_PROJECTS,
99           id_key        = 'id',
100           label_key     = 'projectnumber',
101           limit         = vclimit,
102           show_empty    = 1,
103           allow_textbox = 0,
104         -%]
105       </td>
106     </tr>
107
108     <tr>
109       <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
110       <td><input name="partnumber" size="20"></td>
111     </tr>
112
113     <tr>
114       <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
115       <td>
116         <input name="description" size="40">
117       </td>
118     </tr>
119
120     <tr>
121       <th align="right">[% 'Group' | $T8 %]</th>
122       <td>
123         [%- INCLUDE 'generic/multibox.html'
124           name          = 'partsgroup_id',
125           style         = 'width: 250px',
126           DATA          =  ALL_PARTSGROUPS,
127           id_key        = 'id',
128           label_key     = 'partsgroup',
129           show_empty    = 1,
130           allow_textbox = 0,
131         -%]
132       </td>
133
134       <td align="right" nowrap>[% 'Country' | $T8 %]</td>
135       <td><input name="country" size="20"></td>
136     </tr>
137
138     <tr>
139       <th align="right">[% 'Employee' | $T8 %]</th>
140       <td>
141         [%- INCLUDE 'generic/multibox.html'
142           name          = 'employee_id',
143           style         = 'width: 250px',
144           DATA          =  ALL_EMPLOYEES,
145           id_key        = 'id',
146           label_sub     = 'employee_labels',
147           limit         = vclimit,
148           show_empty    = 1,
149           allow_textbox = 0,
150           default       = ' ',
151         -%]
152       </td>
153
154       <th align="right">[% 'Salesman' | $T8 %]</th>
155       <td>
156         [%- INCLUDE 'generic/multibox.html'
157           name          = 'salesman_id',
158           style         = 'width: 250px',
159           DATA          =  ALL_SALESMEN,
160           id_key        = 'id',
161           label_sub     = 'salesman_labels',
162           limit         = vclimit,
163           show_empty    = 1,
164           allow_textbox = 0,
165         -%]
166       </td>
167     </tr>
168
169     <tr>
170       <th align="right">[% 'Customer type' | $T8 %]</th>
171       <td>
172         [%- INCLUDE 'generic/multibox.html'
173            name          =  'business_id',
174            style         = "width: 250px",
175            DATA          =  ALL_BUSINESS_TYPES,
176            id_key        = 'id',
177            label_key     = 'description',
178            limit         = vclimit,
179            show_empty    = 1,
180            allow_textbox = 0,
181         -%]
182       </td>
183     </tr>
184
185     <tr>
186       <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
187       <td>
188         [% L.date_tag('transdatefrom') %]
189       </td>
190
191       <th align=right>[% 'Bis' | $T8 %]</th>
192
193       <td>
194         [% L.date_tag('transdateto') %]
195       </td>
196     </tr>
197
198
199     <tr>
200       <td></td>
201       <th colspan="4" align="left">
202         [% 'Filter for customer variables' | $T8 %]
203       </th>
204     </tr>
205     [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
206
207
208     <tr>
209       <td></td>
210       <th colspan="4" align="left">
211         [% 'Filter for item variables' | $T8 %]
212       </th>
213     </tr>
214     [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
215
216
217
218     <tr>
219       <td></td>
220       <td colspan="7">
221         <hr size="1" noshade="">
222       </td>
223     <tr>
224
225
226
227     <tr>
228       <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
229
230       <td colspan="3">
231         <table>
232           <tr>
233             <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
234             <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
235             <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y>[% 'Purchase price total' | $T8 %]</td>
236             <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y>[% 'Margetotal' | $T8 %]</td>
237             <td colspan="1"> ([% 'Cumulated values' | $T8 %])
238           </tr>
239
240           <tr>
241             <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
242             <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y>[% 'Sales price' | $T8 %]</td>
243             <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y>[% 'Purchase price' | $T8 %]</td>
244             <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y>[% 'Margepercent' | $T8 %]</td>
245             <td colspan="1">([% 'Averaged values' | $T8 %])</td>
246           </tr>
247
248           <tr>
249             <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
250             <td></td>
251             <td></td>
252             <td></td>
253             <td>([% 'Averaged values' | $T8 %])</td>
254           </tr>
255
256           <tr>
257             <td colspan="7">&nbsp;</td>
258           </tr>
259
260         </table>
261       </td>
262     </tr>
263
264   </table>
265
266   <hr size="3" noshade="">
267
268   <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
269
270   <br><br>
271
272 </form>
273
274 <script type="text/javascript">
275 <!--
276 $(document).ready(function(){
277   $('customer').focus();
278 })
279 //-->
280 </script>