fokus in Einkaufsrechnungen gefixt
[kivitendo-erp.git] / templates / webpages / vk / search_invoice.html
1 [%- USE T8 %]
2 [%- USE L %]
3
4  <form method=post name="search_invoice" action=[% script %]>
5
6   <table width=100% border="0">
7   <tr><th class=listtop>[% title %]</th></tr>
8   <tr height="5"></tr>
9   <tr>
10    <td>
11     <table border="0">
12      <tr>
13      <td>
14       <table border="1">
15        <tr>
16         <th align=left nowrap>[% 'Configuration' | $T8 %]</th>
17         <td>
18          <table border="0">
19            <tr>
20              <td align="right">[% 'Main sorting' | $T8 %]</td>
21              <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>
30                </select>
31              </td>
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>
34              </tr>
35              <tr>
36                <td align="right">[% 'Secondary sorting' | $T8 %]</td>
37                <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>
46                  </select>
47                  </td>
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>
50              </tr>
51            <tr>
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>
54           </tr>
55           <tr>
56            <th align="right">
57              [% 'Total sum' | $T8 %]
58            </th>
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>
62           </tr>
63     </table>
64     </td>
65        <tr>
66         <th align=left nowrap>[% 'Filter' | $T8 %]</th>
67         <td>
68          <table border="0">
69            <tr>
70       <tr>
71         <th align=left colspan="4"><br>[% 'Filter' | $T8 %]:</br></th>
72       </tr>
73      <tr>
74       <th align=right>[% 'Customer' | $T8 %]</th>
75       <td colspan=3>
76             [%- INCLUDE 'generic/multibox.html'
77                  name          = 'customer',
78                  default       = oldcustomer,
79                  style         = 'width: 250px',
80                  DATA          = ALL_VC,
81                  id_sub        = 'vc_keys',
82                  label_key     = 'name',
83                  select        = vc_select,
84                  limit         = vclimit,
85                  show_empty    = 1,
86                  allow_textbox = 1,
87                  -%]
88       </td>
89      </tr>
90       <tr>
91        <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
92        <td colspan="3"><input name="customernumber" size="20"></td>
93       </tr>
94      <tr>
95       <th align=right nowrap>[% 'Department' | $T8 %]</th>
96       <td colspan="3">
97             [%- INCLUDE 'generic/multibox.html'
98                  name          = 'department',
99                  style         = 'width: 250px',
100                  DATA          = ALL_DEPARTMENTS,
101                  id_key        = 'id',
102                  label_key     = 'description',
103                  show_empty    = 1,
104                  allow_textbox = 0,
105             -%]
106       </td>
107      </tr>
108      <tr>
109       <th align="right">[% 'Project Number' | $T8 %]</th>
110       <td colspan="3">
111             [%- INCLUDE 'generic/multibox.html'
112                  name          =  'project_id',
113                  style         = "width: 250px",
114                  DATA          =  ALL_PROJECTS,
115                  id_key        = 'id',
116                  label_key     = 'projectnumber',
117                  limit         = vclimit,
118                  show_empty    = 1,
119                  allow_textbox = 0,
120             -%]
121       </td>
122      </tr>
123       <tr>
124        <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
125        <td colspan="3"><input name="partnumber" size="20"></td>
126       </tr>
127       <tr>
128        <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
129        <td colspan="3"><input name="description" size="40"></td>
130       </tr>
131      <tr>
132       <th align="right">[% 'Group' | $T8 %]</th>
133       <td>
134              [%- INCLUDE 'generic/multibox.html'
135                   name          = 'partsgroup_id',
136                   style         = 'width: 250px',
137                   DATA          =  ALL_PARTSGROUPS,
138                   id_key        = 'id',
139                   label_key     = 'partsgroup',
140                   show_empty    = 1,
141                   allow_textbox = 0,
142              -%]
143       </td>
144      </tr>
145       <tr>
146        <td align="right" nowrap>[% 'Country' | $T8 %]</td>
147        <td colspan="3"><input name="country" size="20"></td>
148       </tr>
149      <tr>
150       <th align="right">[% 'Employee' | $T8 %]</th>
151       <td>
152              [%- INCLUDE 'generic/multibox.html'
153                   name          = 'employee_id',
154                   style         = 'width: 250px',
155                   DATA          =  ALL_EMPLOYEES,
156                   id_key        = 'id',
157                   label_sub     = 'employee_labels',
158                   limit         = vclimit,
159                   show_empty    = 1,
160                   allow_textbox = 0,
161                   default       = ' ',
162              -%]
163       </td>
164      </tr>
165     <tr>
166      <th align="right">[% 'Salesman' | $T8 %]</th>
167      <td>
168             [%- INCLUDE 'generic/multibox.html'
169                  name          = 'salesman_id',
170                  style         = 'width: 250px',
171                  DATA          =  ALL_SALESMEN,
172                  id_key        = 'id',
173                  label_sub     = 'salesman_labels',
174                  limit         = vclimit,
175                  show_empty    = 1,
176                  allow_textbox = 0,
177             -%]
178      </td>
179      </tr>
180      <tr>
181       <th align="right">[% 'Customer type' | $T8 %]</th>
182       <td colspan="3">
183             [%- INCLUDE 'generic/multibox.html'
184                  name          =  'business_id',
185                  style         = "width: 250px",
186                  DATA          =  ALL_BUSINESS_TYPES,
187                  id_key        = 'id',
188                  label_key     = 'description',
189                  limit         = vclimit,
190                  show_empty    = 1,
191                  allow_textbox = 0,
192             -%]
193       </td>
194      </tr>
195      <tr>
196       <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
197       <td>
198         [% L.date_tag('transdatefrom') %]
199       </td>
200      <th align=right>[% 'Bis' | $T8 %]</th>
201      <td>
202        [% L.date_tag('transdateto') %]
203      </td>
204     </tr>
205     <tr>
206         <th align=left colspan="4"><br>[% 'Filter for customer variables' | $T8 %]:</br></th>
207     </tr>
208    [% CUSTOM_VARIABLES_FILTER_CODE_CT %]
209     <tr>
210         <th align=left colspan="4"><br>[% 'Filter for item variables' | $T8 %]:</br></th>
211     </tr>
212    [% CUSTOM_VARIABLES_FILTER_CODE_IC %]
213    <input type=hidden name=sort value=transdate>
214    </table>
215
216     </td>
217       <tr>
218         <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
219         <td>
220          <table border="0">
221           <td colspan="4">
222             [% 'Cumulated or averaged values' | $T8 %] ([% 'invoice mode or item mode' | $T8 %]):
223           </td>
224           <tr>
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 %])
229
230           </tr>
231           <tr>
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>
236           </tr>
237           <tr>
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>
240            <td></td>
241            <td colspan="4">([% 'averaged values, in invoice mode only useful when filtered by a part' | $T8 %])</td>
242           </tr>
243           <tr>
244            <td align=left><input name="l_weight" class=checkbox type=checkbox value=Y>[% 'Weight' | $T8 %]</td>
245           </tr>
246           <tr><td colspan="7">&nbsp;</td></tr>
247           <td colspan="4" align="left">
248           [% 'Item values' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
249           </td>
250           <tr>
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>
255           </tr>
256           <tr>
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>
261           </tr>
262           <tr>
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>
267           </tr>
268           <tr>
269           </tr>
270      <tr><td colspan="7">&nbsp;</td></tr>
271     <tr>
272     <th colspan="4" align="left">
273     [% 'Customer variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
274     </th>
275     </tr>
276         [% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
277
278      <tr><td colspan="7">&nbsp;</td></tr>
279     <tr>
280     <th colspan="4" align="left">
281     [% 'Item variables' | $T8 %] ([% 'Only shown in item mode' | $T8 %])
282     </th>
283     </tr>
284       [% CUSTOM_VARIABLES_INCLUSION_CODE_IC %]
285          </table>
286         </td>
287        </tr>
288       </table>
289      </td>
290     </tr>
291     <tr>
292     </tr>
293    </table>
294    <input type=hidden name=nextsub value=[% nextsub %]>
295    <br>
296    <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
297   </form>
298  <script type="text/javascript">
299  <!--
300    $(document).ready(function(){
301     $('customer').focus();
302    })
303  //-->
304  </script>