4 <form method=post name="search_invoice" action=[% script %]>
6 <table width=100% border="0">
7 <tr><th class=listtop>[% title %]</th></tr>
16 <th align=left nowrap>[% 'Configuration' | $T8 %]</th>
20 <td align="right">[% 'Main sorting' | $T8 %]</td>
22 <select name="mainsort" id="mainsort">
23 <option value="description">[% 'Part' | $T8 %]</option>
24 <option value="customername">[% 'Customer' | $T8 %]</option>
25 <option value="country">[% 'Country' | $T8 %]</option>
26 <option value="partsgroup">[% 'Group' | $T8 %]</option>
27 <option value="business">[% 'Customer type' | $T8 %]</option>
28 <option value="salesman" selected="selected">[% 'Salesman' | $T8 %]</option>
29 <option value="month">[% 'Month' | $T8 %]</option>
32 <td align=left><input name="l_headers_mainsort" class=checkbox type=checkbox value=Y checked> [% 'Heading' | $T8 %]</td>
33 <td align=left><input name="l_subtotal_mainsort" class=checkbox type=checkbox value=Y checked> [% 'Subtotal' | $T8 %]</td>
36 <td align="right">[% 'Secondary sorting' | $T8 %]</td>
38 <select name="subsort" id="subsort">
39 <option value="description">[% 'Part' | $T8 %]</option>
40 <option value="customername">[% 'Customer' | $T8 %]</option>
41 <option value="country">[% 'Country' | $T8 %]</option>
42 <option value="partsgroup">[% 'Group' | $T8 %]</option>
43 <option value="business">[% 'Customer type' | $T8 %]</option>
44 <option value="salesman">[% 'Salesman' | $T8 %]</option>
45 <option value="month" selected="selected">[% 'Month' | $T8 %]</option>
48 <td align=left><input name="l_headers_subsort" class=checkbox type=checkbox value=Y checked> [% 'Heading' | $T8 %]</td>
49 <td align=left><input name="l_subtotal_subsort" class=checkbox type=checkbox value=Y checked> [% 'Subtotal' | $T8 %]</td>
52 <th align="right">[% 'Item mode' | $T8 %]</th>
53 <td colspan="3" align=left><input name="l_parts" class=checkbox type=checkbox value=Y> ([%'Show items from invoices individually' | $T8 %]) </td>
57 [% 'Total sum' | $T8 %]
59 <td colspan="1" align=left><input name="l_total" class=checkbox type=checkbox value=Y checked></td>
60 <td align="right" nowrap>[% 'Decimalplaces' | $T8 %]: </td>
61 <td colspan="2"><input name="decimalplaces" size="2" value="2"></td>
66 <th align=left nowrap>[% 'Filter' | $T8 %]</th>
71 <th align=left colspan="4"><br>[% 'Filter' | $T8 %]:</br></th>
74 <th align=right>[% 'Customer' | $T8 %]</th>
76 [%- INCLUDE 'generic/multibox.html'
78 default = oldcustomer,
79 style = 'width: 250px',
91 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
92 <td colspan="3"><input name="customernumber" size="20"></td>
95 <th align=right nowrap>[% 'Department' | $T8 %]</th>
97 [%- INCLUDE 'generic/multibox.html'
99 style = 'width: 250px',
100 DATA = ALL_DEPARTMENTS,
102 label_key = 'description',
109 <th align="right">[% 'Project Number' | $T8 %]</th>
111 [%- INCLUDE 'generic/multibox.html'
113 style = "width: 250px",
116 label_key = 'projectnumber',
124 <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
125 <td colspan="3"><input name="partnumber" size="20"></td>
128 <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
129 <td colspan="3"><input name="description" size="40"></td>
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',
146 <td align="right" nowrap>[% 'Country' | $T8 %]</td>
147 <td colspan="3"><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',
166 <th align="right">[% 'Salesman' | $T8 %]</th>
168 [%- INCLUDE 'generic/multibox.html'
169 name = 'salesman_id',
170 style = 'width: 250px',
173 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',
196 <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
198 [% L.date_tag('transdatefrom') %]
200 <th align=right>[% 'Bis' | $T8 %]</th>
202 [% L.date_tag('transdateto') %]
206 <th align=left colspan="4"><br>[% 'Filter for customer variables' | $T8 %]:</br></th>
208 [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
210 <th align=left colspan="4"><br>[% 'Filter for item variables' | $T8 %]:</br></th>
212 [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
213 <input type=hidden name=sort value=transdate>
218 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
222 [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
225 <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
226 <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
227 <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
228 <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
232 <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
233 <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
234 <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
235 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
238 <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
239 <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
241 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
244 <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
246 <tr><td colspan="7"> </td></tr>
247 <td colspan="4" align="left">
248 [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
251 <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
252 <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
253 <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
254 <td align=left><input name="l_transdate" class=checkbox type=checkbox value=Y>[% 'Invdate' | $T8 %]</td>
257 <td align=left><input name="l_parts_unit" class=checkbox type=checkbox value=Y>[% 'Base unit' | $T8 %]</td>
258 <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Group' | $T8 %]</td>
259 <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
260 <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
263 <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
264 <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
265 <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
266 <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
270 <tr><td colspan="7"> </td></tr>
272 <th colspan="4" align="left">
273 [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
276 [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
278 <tr><td colspan="7"> </td></tr>
280 <th colspan="4" align="left">
281 [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
284 [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
294 <input type=hidden name=nextsub value=[% nextsub %]>
296 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
298 <script type="text/javascript">
300 $(document).ready(function(){
301 $('customer').focus();