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 %]>
8 <div class="listtop">[% title %]</div>
14 <td align="right">[% 'Main sorting' | $T8 %]</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>
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>
31 <td align="right">[% 'Secondary sorting' | $T8 %]</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>
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>
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>
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>
62 <hr size="1" noshade="">
67 <th align=right>[% 'Customer' | $T8 %]</th>
69 [%- INCLUDE 'generic/multibox.html'
71 default = oldcustomer,
72 style = 'width: 250px',
80 class = 'initial_focus',
84 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
86 <input name="customernumber" size="20">
91 <th align=right nowrap>[% 'Department' | $T8 %]</th>
93 [%- INCLUDE 'generic/multibox.html'
95 style = 'width: 250px',
96 DATA = ALL_DEPARTMENTS,
98 label_key = 'description',
104 <th align="right">[% 'Project Number' | $T8 %]</th>
106 [%- INCLUDE 'generic/multibox.html'
108 style = "width: 250px",
111 label_key = 'projectnumber',
120 <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
121 <td><input name="partnumber" size="20"></td>
125 <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
127 <input name="description" size="40">
132 <th align="right">[% 'Group' | $T8 %]</th>
134 [%- INCLUDE 'generic/multibox.html'
135 name = 'partsgroup_id',
136 style = 'width: 250px',
137 DATA = ALL_PARTSGROUPS,
139 label_key = 'partsgroup',
145 <td align="right" nowrap>[% 'Country' | $T8 %]</td>
146 <td><input name="country" size="20"></td>
150 <th align="right">[% 'Employee' | $T8 %]</th>
152 [%- INCLUDE 'generic/multibox.html'
153 name = 'employee_id',
154 style = 'width: 250px',
155 DATA = ALL_EMPLOYEES,
157 label_sub = 'employee_labels',
165 <th align="right">[% 'Salesman' | $T8 %]</th>
167 [%- INCLUDE 'generic/multibox.html'
168 name = 'salesman_id',
169 style = 'width: 250px',
172 label_sub = 'salesman_labels',
181 <th align="right">[% 'Customer type' | $T8 %]</th>
183 [%- INCLUDE 'generic/multibox.html'
184 name = 'business_id',
185 style = "width: 250px",
186 DATA = ALL_BUSINESS_TYPES,
188 label_key = 'description',
197 <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
199 [% L.date_tag('transdatefrom') %]
202 <th align=right>[% 'Bis' | $T8 %]</th>
205 [% L.date_tag('transdateto') %]
212 <th colspan="4" align="left">
213 [% 'Filter for customer variables' | $T8 %]
216 [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
221 <th colspan="4" align="left">
222 [% 'Filter for item variables' | $T8 %]
225 [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
232 <hr size="1" noshade="">
239 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
245 [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
250 <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
251 <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
252 <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
253 <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
257 <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
258 <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
259 <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
260 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
264 <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
265 <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
267 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
271 <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
275 <td colspan="7"> </td>
279 <td colspan="4" align="left">
280 [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
285 <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
286 <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
287 <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
288 <td align=left><input name="l_transdate" class=checkbox type=checkbox value=Y>[% 'Invdate' | $T8 %]</td>
292 <td align=left><input name="l_parts_unit" class=checkbox type=checkbox value=Y>[% 'Base unit' | $T8 %]</td>
293 <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Group' | $T8 %]</td>
294 <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
295 <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
299 <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
300 <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
301 <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
302 <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
306 <th colspan="4" align="left">
307 [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
310 [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
313 <th colspan="4" align="left">
314 [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
317 [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
325 <hr size="3" noshade="">
327 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
333 <script type="text/javascript">
335 $(document).ready(function(){
336 $('customer').focus();