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',
83 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
85 <input name="customernumber" size="20">
90 <th align=right nowrap>[% 'Department' | $T8 %]</th>
92 [%- INCLUDE 'generic/multibox.html'
94 style = 'width: 250px',
95 DATA = ALL_DEPARTMENTS,
97 label_key = 'description',
103 <th align="right">[% 'Project Number' | $T8 %]</th>
105 [%- INCLUDE 'generic/multibox.html'
107 style = "width: 250px",
110 label_key = 'projectnumber',
119 <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
120 <td><input name="partnumber" size="20"></td>
124 <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
126 <input name="description" size="40">
131 <th align="right">[% 'Group' | $T8 %]</th>
133 [%- INCLUDE 'generic/multibox.html'
134 name = 'partsgroup_id',
135 style = 'width: 250px',
136 DATA = ALL_PARTSGROUPS,
138 label_key = 'partsgroup',
144 <td align="right" nowrap>[% 'Country' | $T8 %]</td>
145 <td><input name="country" size="20"></td>
149 <th align="right">[% 'Employee' | $T8 %]</th>
151 [%- INCLUDE 'generic/multibox.html'
152 name = 'employee_id',
153 style = 'width: 250px',
154 DATA = ALL_EMPLOYEES,
156 label_sub = 'employee_labels',
164 <th align="right">[% 'Salesman' | $T8 %]</th>
166 [%- INCLUDE 'generic/multibox.html'
167 name = 'salesman_id',
168 style = 'width: 250px',
171 label_sub = 'salesman_labels',
180 <th align="right">[% 'Customer type' | $T8 %]</th>
182 [%- INCLUDE 'generic/multibox.html'
183 name = 'business_id',
184 style = "width: 250px",
185 DATA = ALL_BUSINESS_TYPES,
187 label_key = 'description',
196 <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
198 [% L.date_tag('transdatefrom') %]
201 <th align=right>[% 'Bis' | $T8 %]</th>
204 [% L.date_tag('transdateto') %]
211 <th colspan="4" align="left">
212 [% 'Filter for customer variables' | $T8 %]
215 [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
220 <th colspan="4" align="left">
221 [% 'Filter for item variables' | $T8 %]
224 [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
231 <hr size="1" noshade="">
238 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
244 [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
249 <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
250 <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
251 <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
252 <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
256 <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
257 <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
258 <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
259 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
263 <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
264 <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
266 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
270 <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
274 <td colspan="7"> </td>
278 <td colspan="4" align="left">
279 [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
284 <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
285 <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
286 <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
287 <td align=left><input name="l_transdate" class=checkbox type=checkbox value=Y>[% 'Invdate' | $T8 %]</td>
291 <td align=left><input name="l_parts_unit" class=checkbox type=checkbox value=Y>[% 'Base unit' | $T8 %]</td>
292 <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Group' | $T8 %]</td>
293 <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
294 <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
298 <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
299 <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
300 <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
301 <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
305 <th colspan="4" align="left">
306 [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
309 [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
312 <th colspan="4" align="left">
313 [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
316 [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
324 <hr size="3" noshade="">
326 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
332 <script type="text/javascript">
334 $(document).ready(function(){
335 $('customer').focus();