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 %]>
12 <td align="right">[% 'Main sorting' | $T8 %]</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>
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>
29 <td align="right">[% 'Secondary sorting' | $T8 %]</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>
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>
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>
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>
60 <hr size="1" noshade="">
65 <th align=right>[% 'Customer' | $T8 %]</th>
67 [%- INCLUDE 'generic/multibox.html'
69 default = oldcustomer,
70 style = 'width: 250px',
78 class = 'initial_focus',
82 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
84 <input name="customernumber" size="20">
89 <th align=right nowrap>[% 'Department' | $T8 %]</th>
91 [%- INCLUDE 'generic/multibox.html'
93 style = 'width: 250px',
94 DATA = ALL_DEPARTMENTS,
96 label_key = 'description',
102 <th align="right">[% 'Project Number' | $T8 %]</th>
104 [%- INCLUDE 'generic/multibox.html'
106 style = "width: 250px",
109 label_key = 'projectnumber',
118 <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
119 <td><input name="partnumber" size="20"></td>
123 <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
125 <input name="description" size="40">
130 <th align="right">[% 'Partsgroup' | $T8 %]</th>
132 [%- INCLUDE 'generic/multibox.html'
133 name = 'partsgroup_id',
134 style = 'width: 250px',
135 DATA = ALL_PARTSGROUPS,
137 label_key = 'partsgroup',
143 <td align="right" nowrap>[% 'Country' | $T8 %]</td>
144 <td><input name="country" size="20"></td>
148 <th align="right">[% 'Employee' | $T8 %]</th>
150 [%- INCLUDE 'generic/multibox.html'
151 name = 'employee_id',
152 style = 'width: 250px',
153 DATA = ALL_EMPLOYEES,
155 label_sub = 'employee_labels',
163 <th align="right">[% 'Salesman' | $T8 %]</th>
165 [%- INCLUDE 'generic/multibox.html'
166 name = 'salesman_id',
167 style = 'width: 250px',
170 label_sub = 'salesman_labels',
179 <th align="right">[% 'Customer type' | $T8 %]</th>
181 [%- INCLUDE 'generic/multibox.html'
182 name = 'business_id',
183 style = "width: 250px",
184 DATA = ALL_BUSINESS_TYPES,
186 label_key = 'description',
195 <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
197 [% L.date_tag('transdatefrom') %]
200 <th align=right>[% 'Bis' | $T8 %]</th>
203 [% L.date_tag('transdateto') %]
210 <th colspan="4" align="left">
211 [% 'Filter for customer variables' | $T8 %]
214 [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
219 <th colspan="4" align="left">
220 [% 'Filter for item variables' | $T8 %]
223 [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
230 <hr size="1" noshade="">
237 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
243 [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
248 <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
249 <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
250 <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
251 <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
255 <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
256 <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
257 <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
258 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
262 <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
263 <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
265 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
269 <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
273 <td colspan="7"> </td>
277 <td colspan="4" align="left">
278 [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
283 <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
284 <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
285 <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
286 <td align=left><input name="l_transdate" class=checkbox type=checkbox value=Y>[% 'Invdate' | $T8 %]</td>
290 <td align=left><input name="l_parts_unit" class=checkbox type=checkbox value=Y>[% 'Base unit' | $T8 %]</td>
291 <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Partsgroup' | $T8 %]</td>
292 <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
293 <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
297 <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
298 <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
299 <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
300 <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
304 <th colspan="4" align="left">
305 [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
308 [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
311 <th colspan="4" align="left">
312 [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
315 [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
323 <hr size="3" noshade="">
325 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
331 <script type="text/javascript">
333 $(document).ready(function(){
334 $('customer').focus();