Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
[kivitendo-erp.git] / templates / webpages / vk / search_invoice.html
1 [%- USE T8 %]
2 [%- USE L %]
3 <body>
4
5  <form method=post name="search_invoice" action=[% script %]>
6
7   <table width=100% border="0">
8   <tr><th class=listtop>[% title %]</th></tr>
9   <tr height="5"></tr>
10   <tr>
11    <td>
12     <table border="0">
13      <tr>
14      <td>
15       <table border="1">
16        <tr>
17         <th align=left nowrap>[% 'Configuration' | $T8 %]</th>
18         <td>
19          <table border="0">
20            <tr>
21              <td align="right">[% 'Main sorting' | $T8 %]</td>
22              <td>
23                <select name="mainsort" id="mainsort">
24                <option value="description">[% 'Part' | $T8 %]</option>
25                <option value="customername">[% 'Customer' | $T8 %]</option>
26                <option value="country">[% 'Country' | $T8 %]</option>
27                <option value="partsgroup">[% 'Group' | $T8 %]</option>
28                <option value="business">[% 'Customer type' | $T8 %]</option>
29                <option value="salesman" selected="selected">[% 'Salesman' | $T8 %]</option>
30                <option value="month">[% 'Month' | $T8 %]</option>
31                </select>
32              </td>
33              <td align=left><input name="l_headers_mainsort" class=checkbox type=checkbox value=Y checked> [% 'Heading' | $T8 %]</td>
34              <td align=left><input name="l_subtotal_mainsort" class=checkbox type=checkbox value=Y checked> [% 'Subtotal' | $T8 %]</td>
35              </tr>
36              <tr>
37                <td align="right">[% 'Secondary sorting' | $T8 %]</td>
38                <td>
39                  <select name="subsort" id="subsort">
40                  <option value="description">[% 'Part' | $T8 %]</option>
41                  <option value="customername">[% 'Customer' | $T8 %]</option>
42                  <option value="country">[% 'Country' | $T8 %]</option>
43                  <option value="partsgroup">[% 'Group' | $T8 %]</option>
44                  <option value="business">[% 'Customer type' | $T8 %]</option>
45                  <option value="salesman">[% 'Salesman' | $T8 %]</option>
46                  <option value="month" selected="selected">[% 'Month' | $T8 %]</option>
47                  </select>
48                  </td>
49                <td align=left><input name="l_headers_subsort" class=checkbox type=checkbox value=Y checked> [% 'Heading' | $T8 %]</td>
50                <td align=left><input name="l_subtotal_subsort" class=checkbox type=checkbox value=Y checked> [% 'Subtotal' | $T8 %]</td>
51              </tr>
52            <tr>
53            <th align="right">[% 'Item mode' | $T8 %]</th>
54            <td colspan="3" align=left><input name="l_parts" class=checkbox type=checkbox value=Y> ([%'Show items from invoices individually' | $T8 %]) </td>
55           </tr>
56           <tr> 
57            <th align="right">
58              [% 'Total sum' | $T8 %]
59            </th>
60            <td colspan="1" align=left><input name="l_total" class=checkbox type=checkbox value=Y checked></td>
61             <td align="right" nowrap>[% 'Decimalplaces' | $T8 %]: </td>
62             <td colspan="2"><input name="decimalplaces" size="2" value="2"></td>
63           </tr>
64     </table>
65     </td>
66        <tr>
67         <th align=left nowrap>[% 'Filter' | $T8 %]</th>
68         <td>
69          <table border="0">
70            <tr>
71       <tr>
72         <th align=left colspan="4"><br>[% 'Filter' | $T8 %]:</br></th>
73       </tr>
74      <tr>
75       <th align=right>[% 'Customer' | $T8 %]</th>
76       <td colspan=3>
77             [%- INCLUDE 'generic/multibox.html'
78                  name          = 'customer',
79                  default       = oldcustomer,
80                  style         = 'width: 250px',
81                  DATA          = ALL_VC,
82                  id_sub        = 'vc_keys',
83                  label_key     = 'name',
84                  select        = vc_select,
85                  limit         = vclimit,
86                  show_empty    = 1,
87                  allow_textbox = 1,
88                  -%]
89       </td>
90      </tr>
91       <tr>
92        <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
93        <td colspan="3"><input name="customernumber" size="20"></td>
94       </tr>
95      <tr>
96       <th align=right nowrap>[% 'Department' | $T8 %]</th>
97       <td colspan="3">
98             [%- INCLUDE 'generic/multibox.html'
99                  name          = 'department',
100                  style         = 'width: 250px',
101                  DATA          = ALL_DEPARTMENTS,
102                  id_key        = 'id',
103                  label_key     = 'description',
104                  show_empty    = 1,
105                  allow_textbox = 0,
106             -%]
107       </td>
108      </tr>
109      <tr>
110       <th align="right">[% 'Project Number' | $T8 %]</th>
111       <td colspan="3">
112             [%- INCLUDE 'generic/multibox.html'
113                  name          =  'project_id',
114                  style         = "width: 250px",
115                  DATA          =  ALL_PROJECTS,
116                  id_key        = 'id',
117                  label_key     = 'projectnumber',
118                  limit         = vclimit,
119                  show_empty    = 1,
120                  allow_textbox = 0,
121             -%]
122       </td>
123      </tr>
124       <tr>
125        <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
126        <td colspan="3"><input name="partnumber" size="20"></td>
127       </tr>
128       <tr>
129        <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
130        <td colspan="3"><input name="description" size="40"></td>
131       </tr>
132      <tr>
133       <th align="right">[% 'Group' | $T8 %]</th>
134       <td>
135              [%- INCLUDE 'generic/multibox.html'
136                   name          = 'partsgroup_id',
137                   style         = 'width: 250px',
138                   DATA          =  ALL_PARTSGROUPS,
139                   id_key        = 'id',
140                   label_key     = 'partsgroup',
141                   show_empty    = 1,
142                   allow_textbox = 0,
143              -%]
144       </td>
145      </tr>
146       <tr>
147        <td align="right" nowrap>[% 'Country' | $T8 %]</td>
148        <td colspan="3"><input name="country" size="20"></td>
149       </tr>
150      <tr>
151       <th align="right">[% 'Employee' | $T8 %]</th>
152       <td>
153              [%- INCLUDE 'generic/multibox.html'
154                   name          = 'employee_id',
155                   style         = 'width: 250px',
156                   DATA          =  ALL_EMPLOYEES,
157                   id_key        = 'id',
158                   label_sub     = 'employee_labels',
159                   limit         = vclimit,
160                   show_empty    = 1,
161                   allow_textbox = 0,
162                   default       = ' ',
163              -%]
164       </td>
165      </tr>
166     <tr>
167      <th align="right">[% 'Salesman' | $T8 %]</th>
168      <td>
169             [%- INCLUDE 'generic/multibox.html'
170                  name          = 'salesman_id',
171                  style         = 'width: 250px',
172                  DATA          =  ALL_SALESMEN,
173                  id_key        = 'id',
174                  label_sub     = 'salesman_labels',
175                  limit         = vclimit,
176                  show_empty    = 1,
177                  allow_textbox = 0,
178             -%]
179      </td>
180      </tr>
181      <tr>
182       <th align="right">[% 'Customer type' | $T8 %]</th>
183       <td colspan="3">
184             [%- INCLUDE 'generic/multibox.html'
185                  name          =  'business_id',
186                  style         = "width: 250px",
187                  DATA          =  ALL_BUSINESS_TYPES,
188                  id_key        = 'id',
189                  label_key     = 'description',
190                  limit         = vclimit,
191                  show_empty    = 1,
192                  allow_textbox = 0,
193             -%]
194       </td>
195      </tr>
196      <tr>
197       <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
198       <td>
199         [% L.date_tag('transdatefrom') %]
200       </td>
201      <th align=right>[% 'Bis' | $T8 %]</th>
202      <td>
203        [% L.date_tag('transdateto') %]
204      </td>
205     </tr>
206     <tr>
207         <th align=left colspan="4"><br>[% 'Filter for customer variables' | $T8 %]:</br></th>
208     </tr>
209    [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
210     <tr>
211         <th align=left colspan="4"><br>[% 'Filter for item variables' | $T8 %]:</br></th>
212     </tr>
213    [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
214    <input type=hidden name=sort value=transdate>
215    </table>
216
217     </td>
218       <tr>
219         <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
220         <td>
221          <table border="0">
222           <td colspan="4">
223             [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
224           </td>
225           <tr>
226            <td align=left><input name="l_sellprice_total" class=checkbox type=checkbox value=Y checked>[% 'Sales price total' | $T8 %]</td>
227            <td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
228            <td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
229            <td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
230            
231           </tr>
232           <tr>
233            <td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
234            <td align=left><input name="l_lastcost" class=checkbox type=checkbox value=Y checked>[% 'Purchase price' | $T8 %]</td>
235            <td align=left><input name="l_marge_percent" class=checkbox type=checkbox value=Y checked>[% 'Margepercent' | $T8 %]</td>
236            <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
237           </tr>
238           <tr>
239            <td align=left><input name="l_qty" class=checkbox type=checkbox value=Y checked>[% 'Quantity' | $T8 %]</td>
240            <td align=left><input name="l_discount" class=checkbox type=checkbox value=Y>[% 'Discount' | $T8 %]</td>
241            <td></td>
242            <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
243           </tr>
244           <tr>
245            <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
246           </tr>
247           <tr><td colspan="7">&nbsp;</td></tr>
248           <td colspan="4" align="left">
249           [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
250           </td>
251           <tr>
252            <td align=left><input name="l_description" class=checkbox type=checkbox value=Y checked>[% 'Description' | $T8 %]</td>
253            <td align=left><input name="l_partnumber" class=checkbox type=checkbox value=Y>[% 'Part Number' | $T8 %]</td>
254            <td align=left><input name="l_invnumber" class=checkbox type=checkbox value=Y>[% 'Invnumber' | $T8 %]</td>
255            <td align=left><input name="l_transdate" class=checkbox type=checkbox value=Y>[% 'Invdate' | $T8 %]</td>
256           </tr>
257           <tr>
258            <td align=left><input name="l_parts_unit" class=checkbox type=checkbox value=Y>[% 'Base unit' | $T8 %]</td>
259            <td align=left><input name="l_partsgroup" class=checkbox type=checkbox value=Y>[% 'Group' | $T8 %]</td>
260            <td align=left><input name="l_salesman" class=checkbox type=checkbox value=Y>[% 'Salesperson' | $T8 %]</td>
261            <td align=left><input name="l_employee" class=checkbox type=checkbox value=Y>[% 'Employee' | $T8 %]</td>
262           </tr>
263           <tr>
264            <td align=left><input name="l_customernumber" class=checkbox type=checkbox value=Y>[% 'Customer Number' | $T8 %]</td>
265            <td align=left><input name="l_customername" class=checkbox type=checkbox value=Y>[% 'Customer Name' | $T8 %]</td>
266            <td align=left><input name="l_country" class=checkbox type=checkbox value=Y>[% 'Country' | $T8 %]</td>
267            <td align=left><input name="l_business" class=checkbox type=checkbox value=Y>[% 'Customer type' | $T8 %]</td>
268           </tr>
269           <tr>
270           </tr>
271      <tr><td colspan="7">&nbsp;</td></tr>
272     <tr>
273     <th colspan="4" align="left">
274     [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
275     </th>
276     </tr>
277         [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
278  
279      <tr><td colspan="7">&nbsp;</td></tr>
280     <tr>
281     <th colspan="4" align="left">
282     [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
283     </th>
284     </tr>
285       [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
286          </table>
287         </td>
288        </tr>
289       </table>
290      </td>
291     </tr>
292     <tr>
293     </tr>
294    </table>
295    <input type=hidden name=nextsub value=[% nextsub %]>
296    <br>
297    <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
298   </form>
299  <script type="text/javascript">
300  <!--
301    $(document).ready(function(){
302     $('customer').focus();
303     setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
304     setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
305    })
306  //-->
307  </script>
308  </body>
309 </html>