1 [%- USE T8 %][%- USE L %][%- USE P -%]
2 [%- SET style="width: 250px" %]
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>
66 <td>[% P.input_tag("customer", "", class="initial_focus", style=style) %]</td>
68 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
69 <td>[% P.input_tag("customernumber", "", style=style) %]</td>
73 <th align=right nowrap>[% 'Department' | $T8 %]</th>
75 [%- L.select_tag('department_id',
77 title_key = 'description',
83 <th align="right">[% 'Project Number' | $T8 %]</th>
84 <td>[% P.project_picker("project_id", "", style=style) %]</td>
88 <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
89 <td>[% P.input_tag("partnumber", "", style=style) %]</td>
93 <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
94 <td>[% P.input_tag("description", "", style=style) %]</td>
98 <th align="right">[% 'Partsgroup' | $T8 %]</th>
99 <td>[% P.select_tag("partsgroupd_id", ALL_PARTSGROUPS, title_key="partsgroup", with_empty=1, style=style) %]</td>
100 <td align="right" nowrap>[% 'Country' | $T8 %]</td>
101 <td>[% P.input_tag("country", "", style=style) %]</td>
105 <th align="right">[% 'Employee' | $T8 %]</th>
106 <td>[% L.select_tag("employee_id", ALL_EMPLOYEES, title_key="safe_name", with_empty=1, style=style) %]</td>
108 <th align="right">[% 'Salesman' | $T8 %]</th>
109 <td>[% L.select_tag("salesman_id", ALL_EMPLOYEES, title_key="safe_name", with_empty=1, style=style) %]</td>
113 <th align="right">[% 'Customer type' | $T8 %]</th>
114 <td>[% L.select_tag("business_id", ALL_BUSINESS_TYPES, title_key="description", with_empty=1, style=style) %]</td>
118 <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
120 [% L.date_tag('transdatefrom') %]
122 [% L.date_tag('transdateto') %]
129 <th colspan="4" align="left">
130 [% 'Filter for customer variables' | $T8 %]
133 [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
138 <th colspan="4" align="left">
139 [% 'Filter for item variables' | $T8 %]
142 [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
149 <hr size="1" noshade="">
156 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
162 [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
167 <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
168 <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
169 <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
170 <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
174 <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
175 <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
176 <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
177 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
181 <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
182 <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
184 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
188 <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
192 <td colspan="7"> </td>
196 <td colspan="4" align="left">
197 [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
202 <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
203 <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
204 <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
205 <td align=left><input name="l_transdate" class=checkbox type=checkbox value=Y>[% 'Invdate' | $T8 %]</td>
209 <td align=left><input name="l_parts_unit" class=checkbox type=checkbox value=Y>[% 'Base unit' | $T8 %]</td>
210 <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Partsgroup' | $T8 %]</td>
211 <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
212 <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
216 <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
217 <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
218 <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
219 <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
223 <th colspan="4" align="left">
224 [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
227 [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
230 <th colspan="4" align="left">
231 [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
234 [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
242 <hr size="3" noshade="">
244 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
250 <script type="text/javascript">
252 $(document).ready(function(){
253 $('customer').focus();