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>
22 <option value="shipvia">[% 'Ship via' | $T8 %]</option>
25 <td align=left><input name="l_headers_mainsort" class=checkbox type=checkbox value=Y checked> [% 'Heading' | $T8 %]</td>
26 <td align=left><input name="l_subtotal_mainsort" class=checkbox type=checkbox value=Y checked> [% 'Subtotal' | $T8 %]</td>
30 <td align="right">[% 'Secondary sorting' | $T8 %]</td>
32 <select name="subsort" id="subsort">
33 <option value="description">[% 'Part' | $T8 %]</option>
34 <option value="customername">[% 'Customer' | $T8 %]</option>
35 <option value="country">[% 'Country' | $T8 %]</option>
36 <option value="partsgroup">[% 'Partsgroup' | $T8 %]</option>
37 <option value="business">[% 'Customer type' | $T8 %]</option>
38 <option value="salesman">[% 'Salesman' | $T8 %]</option>
39 <option value="month" selected="selected">[% 'Month' | $T8 %]</option>
42 <td align=left><input name="l_headers_subsort" class=checkbox type=checkbox value=Y checked> [% 'Heading' | $T8 %]</td>
43 <td align=left><input name="l_subtotal_subsort" class=checkbox type=checkbox value=Y checked> [% 'Subtotal' | $T8 %]</td>
47 <th align="right">[% 'Item mode' | $T8 %]</th>
48 <td colspan="3" align=left><input name="l_parts" class=checkbox type=checkbox value=Y> ([%'Show items from invoices individually' | $T8 %]) </td>
52 <th align="right">[% 'Total sum' | $T8 %]</th>
53 <td colspan="1" align=left><input name="l_total" class=checkbox type=checkbox value=Y checked></td>
54 <td align="right" nowrap>[% 'Decimalplaces' | $T8 %]: </td>
55 <td colspan="2"><input name="decimalplaces" size="2" value="2"></td>
61 <hr size="1" noshade="">
66 <th align=right>[% 'Customer' | $T8 %]</th>
67 <td>[% P.input_tag("customer", "", class="initial_focus", style=style) %]</td>
69 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
70 <td>[% P.input_tag("customernumber", "", style=style) %]</td>
74 <th align=right nowrap>[% 'Department' | $T8 %]</th>
76 [%- L.select_tag('department_id',
78 title_key = 'description',
84 <th align="right">[% 'Project Number' | $T8 %]</th>
85 <td>[% P.project.picker("project_id", "", active="both", valid="both", style=style) %]</td>
89 <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
90 <td>[% P.input_tag("partnumber", "", style=style) %]</td>
94 <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
95 <td>[% P.input_tag("description", "", style=style) %]</td>
99 <th align="right">[% 'Partsgroup' | $T8 %]</th>
100 <td>[% P.select_tag("partsgroup_id", ALL_PARTSGROUPS, title_key="partsgroup", with_empty=1, style=style) %]</td>
101 <td align="right" nowrap>[% 'Country' | $T8 %]</td>
102 <td>[% P.input_tag("country", "", style=style) %]</td>
106 <th align="right">[% 'Employee' | $T8 %]</th>
107 <td>[% L.select_tag("employee_id", ALL_EMPLOYEES, title_key="safe_name", with_empty=1, style=style) %]</td>
109 <th align="right">[% 'Salesman' | $T8 %]</th>
110 <td>[% L.select_tag("salesman_id", ALL_EMPLOYEES, title_key="safe_name", with_empty=1, style=style) %]</td>
114 <th align="right">[% 'Customer type' | $T8 %]</th>
115 <td>[% L.select_tag("business_id", ALL_BUSINESS_TYPES, title_key="description", with_empty=1, style=style) %]</td>
119 <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
121 [% L.date_tag('transdatefrom') %]
123 [% L.date_tag('transdateto') %]
130 <th colspan="4" align="left">
131 [% 'Filter for customer variables' | $T8 %]
134 [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
139 <th colspan="4" align="left">
140 [% 'Filter for item variables' | $T8 %]
143 [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
150 <hr size="1" noshade="">
157 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
163 [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
168 <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
169 <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
170 <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
171 <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
175 <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
176 <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
177 <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
178 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
182 <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
183 <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
185 <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
189 <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
193 <td colspan="7"> </td>
197 <td colspan="4" align="left">
198 [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
203 <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
204 <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
205 <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
206 <td align=left><input name="l_transdate" class=checkbox type=checkbox value=Y>[% 'Invdate' | $T8 %]</td>
210 <td align=left><input name="l_parts_unit" class=checkbox type=checkbox value=Y>[% 'Base unit' | $T8 %]</td>
211 <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Partsgroup' | $T8 %]</td>
212 <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
213 <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
217 <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
218 <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
219 <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
220 <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
223 <td align=left><input name="l_shipvia" class=checkbox type=checkbox value=Y>[% 'Ship via' | $T8 %]</td>
226 <th colspan="4" align="left">
227 [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
230 [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
233 <th colspan="4" align="left">
234 [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
237 [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
245 <hr size="3" noshade="">
247 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
253 <script type="text/javascript">
255 $(document).ready(function(){
256 $('customer').focus();