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 %]>
9 <div class="listtop">[% title %]</div>
15 <td align="right">[% 'Main sorting' | $T8 %]</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>
28 <td align="right">[% 'Sort By' | $T8 %]</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>
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>
51 <hr size="1" noshade="">
56 <th align=right>[% 'Customer' | $T8 %]</th>
58 [%- INCLUDE 'generic/multibox.html'
60 default = oldcustomer,
61 style = 'width: 250px',
69 class = 'initial_focus',
73 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
75 <input name="customernumber" size="20">
80 <th align=right nowrap>[% 'Department' | $T8 %]</th>
82 [%- INCLUDE 'generic/multibox.html'
84 style = 'width: 250px',
85 DATA = ALL_DEPARTMENTS,
87 label_key = 'description',
93 <th align="right">[% 'Project Number' | $T8 %]</th>
95 [%- INCLUDE 'generic/multibox.html'
97 style = "width: 250px",
100 label_key = 'projectnumber',
109 <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
110 <td><input name="partnumber" size="20"></td>
114 <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
116 <input name="description" size="40">
121 <th align="right">[% 'Group' | $T8 %]</th>
123 [%- INCLUDE 'generic/multibox.html'
124 name = 'partsgroup_id',
125 style = 'width: 250px',
126 DATA = ALL_PARTSGROUPS,
128 label_key = 'partsgroup',
134 <td align="right" nowrap>[% 'Country' | $T8 %]</td>
135 <td><input name="country" size="20"></td>
139 <th align="right">[% 'Employee' | $T8 %]</th>
141 [%- INCLUDE 'generic/multibox.html'
142 name = 'employee_id',
143 style = 'width: 250px',
144 DATA = ALL_EMPLOYEES,
146 label_sub = 'employee_labels',
154 <th align="right">[% 'Salesman' | $T8 %]</th>
156 [%- INCLUDE 'generic/multibox.html'
157 name = 'salesman_id',
158 style = 'width: 250px',
161 label_sub = 'salesman_labels',
170 <th align="right">[% 'Customer type' | $T8 %]</th>
172 [%- INCLUDE 'generic/multibox.html'
173 name = 'business_id',
174 style = "width: 250px",
175 DATA = ALL_BUSINESS_TYPES,
177 label_key = 'description',
186 <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
188 [% L.date_tag('transdatefrom') %]
191 <th align=right>[% 'Bis' | $T8 %]</th>
194 [% L.date_tag('transdateto') %]
201 <th colspan="4" align="left">
202 [% 'Filter for customer variables' | $T8 %]
205 [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
210 <th colspan="4" align="left">
211 [% 'Filter for item variables' | $T8 %]
214 [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
221 <hr size="1" noshade="">
228 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
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 %])
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>
249 <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
253 <td>([% 'Averaged values' | $T8 %])</td>
257 <td colspan="7"> </td>
266 <hr size="3" noshade="">
268 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
274 <script type="text/javascript">
276 $(document).ready(function(){
277 $('customer').focus();