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 <input name=transdatefrom id=transdatefrom size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
199 <input type=button name=transdatefrom id="trigger1" value=[% 'button' | $T8 %]>
201 <th align=right>[% 'Bis' | $T8 %]</th>
203 <input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
204 <input type=button name=transdateto name=transdateto id="trigger2" value=[% 'button' | $T8 %]>
208 <th align=left colspan="4"><br>[% 'Filter for customer variables' | $T8 %]:</br></th>
210 [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
212 <th align=left colspan="4"><br>[% 'Filter for item variables' | $T8 %]:</br></th>
214 [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
215 <input type=hidden name=sort value=transdate>
220 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
224 [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
227 <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
228 <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
229 <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
230 <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
234 <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
235 <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
236 <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
237 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
240 <td align=left><input name="l_qty" class=checkbox type=checkbox value="Y" checked>[% 'Quantity' | $T8 %]</td>
241 <td align=left><input name="l_discount" class=checkbox type=checkbox value="Y">[% 'Discount' | $T8 %]</td>
243 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
245 <tr><td colspan="7"> </td></tr>
246 <td colspan="4" align="left">
247 [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
250 <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
251 <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
252 <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
253 <td align=left><input name="l_transdate" class=checkbox type=checkbox value="Y">[% 'Invdate' | $T8 %]</td>
256 <td align=left><input name="l_unit" class=checkbox type=checkbox value="Y">[% 'Unit' | $T8 %]</td>
257 <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Group' | $T8 %]</td>
258 <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
259 <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
262 <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
263 <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
264 <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
265 <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
269 <tr><td colspan="7"> </td></tr>
271 <th colspan="4" align="left">
272 [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
275 [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
277 <tr><td colspan="7"> </td></tr>
279 <th colspan="4" align="left">
280 [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
283 [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
293 <input type=hidden name=nextsub value=[% nextsub %]>
295 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
297 <script type="text/javascript">
299 Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
300 Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
301 $(document).ready(function(){
302 $('customer').focus();
303 setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
304 setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');