Erfassungsdatum bei Verkaufs-Lieferscheinen.
[kivitendo-erp.git] / templates / webpages / do / search.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE HTML %][%- USE LxERP %]
4 <h1>[% title %]</h1>
5
6  [%- IF vc == 'customer' %]
7  [%- SET is_customer = '1' %]
8  [%- ELSE %]
9  [%- SET is_customer = '0' %]
10  [%- END %]
11
12  <script type="text/javascript">
13    $(function(){ document.Form.donumber.focus(); });
14  </script>
15
16  <style type="text/css">
17   .fixed_width {
18     width: 250px;
19   }
20  </style>
21
22  <form method="post" action="do.pl" name="Form">
23
24   <p>
25    <table>
26     <tr>
27      <th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
28      <td colspan="3">
29       [%- UNLESS SHOW_VC_DROP_DOWN %]
30       <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
31       [%- ELSE %]
32       <select name="[% vc %]" class="fixed_width">
33        <option></option>
34        [%- FOREACH row = ALL_VC %]
35        <option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>
36        [%- END %]
37       </select>
38       <input type="hidden" name="select[% vc %]" value="1">
39       [%- END %]
40      </td>
41     </tr>
42
43     <tr>
44      <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
45      <td colspan="3">[% L.input_tag("cp_name", '', class="fixed_width") %]</td>
46     </tr>
47
48     <tr>
49      <th align="right">[% 'Delivery Order Number' | $T8 %]</th>
50      <td colspan="3"><input name="donumber" class="fixed_width"></td>
51     </tr>
52
53     <tr>
54      <th align="right">[% 'Order Number' | $T8 %]</th>
55      <td colspan="3"><input name="ordnumber" class="fixed_width"></td>
56     </tr>
57
58     <tr>
59      <th align="right">[% 'Customer Order Number' | $T8 %]</th>
60      <td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
61     </tr>
62
63     [%- IF ALL_DEPARTMENTS.size %]
64     <tr>
65      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
66      <td colspan="3">
67       <select name="department" class="fixed_width">
68        <option></option>
69        [%- FOREACH row = ALL_DEPARTMENTS %]
70        <option[% IF department == row.id %] selected[% END %]>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>
71        [%- END %]
72       </select>
73      </td>
74     </tr>
75     [%- END %]
76
77     <tr>
78      <th align="right">[% 'Employee' | $T8 %]</th>
79      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
80     </tr>
81
82     [%- IF is_customer %]
83     <tr>
84      <th align="right">[% 'Salesman' | $T8 %]</th>
85      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
86     </tr>
87     [%- END %]
88
89     <tr>
90      <th align="right">[% 'Transaction description' | $T8 %]</th>
91      <td colspan="3"><input name="transaction_description" class="fixed_width"></td>
92     </tr>
93
94     <tr>
95      <th align="right">[% 'Project Number' | $T8 %]</th>
96      <td colspan="3">
97       <select name="project_id" class="fixed_width">
98        <option></option>
99        [%- FOREACH row = ALL_PROJECTS %]
100        <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
101        [%- END %]
102       </select>
103      </td>
104     </tr>
105
106     <tr>
107      <th align="right">[% 'Serial Number' | $T8 %]</th>
108      <td colspan="3"><input name="serialnumber" class="fixed_width"></td>
109     </tr>
110
111     <tr>
112      <th align="right">[% 'Delivery Order Date' | $T8 %] [% 'From' | $T8 %]</th>
113      <td>
114       [% L.date_tag('transdatefrom') %]
115      </td>
116      <th align="right">[% 'Bis' | $T8 %]</th>
117      <td>
118       [% L.date_tag('transdateto') %]
119      </td>
120     </tr>
121
122     <tr>
123      <th align="right">[% 'Reqdate' | $T8 %] [% 'From' | $T8 %]</th>
124      <td>
125       [% L.date_tag('reqdatefrom') %]
126      </td>
127      <th align="right">[% 'Bis' | $T8 %]</th>
128      <td>
129       [% L.date_tag('reqdateto') %]
130      </td>
131     </tr>
132
133     [%- IF is_customer %]
134     <tr>
135      <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
136      <td>
137        [% L.date_tag('insertdatefrom') %]
138      </td>
139      <th align="right">[% 'Bis' | $T8 %]</th>
140      <td>
141        [% L.date_tag('insertdateto') %]
142      </td>
143     </tr>
144     [%- END %]
145
146     <tr>
147      <th align="right">[% 'Include in Report' | $T8 %]</th>
148      <td colspan="5">
149       <table>
150        <tr>
151         <td>
152          <input type="checkbox" name="open" value="1" id="open" checked>
153          <label for="open">[% 'Open' | $T8 %]</label>
154         </td>
155         <td>
156          <input type="checkbox" name="closed" value="1" id="closed">
157          <label for="closed">[% 'Closed' | $T8 %]</label>
158         </td>
159        </tr>
160
161        <tr>
162         <td>
163          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
164          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
165         </td>
166         <td>
167          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
168          <label for="delivered">[% 'Delivered' | $T8 %]</label></td>
169        </tr>
170
171        <tr>
172         <td>
173          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
174          <label for="l_id">[% 'ID' | $T8 %]</label>
175         </td>
176
177         <td>
178          <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
179          <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
180         </td>
181        </tr>
182
183        <tr>
184         <td>
185          <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
186          <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
187         </td>
188
189         <td>
190          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
191          <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
192         </td>
193        </tr>
194
195        <tr>
196         <td>
197          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
198          <label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
199         </td>
200         <td>
201          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
202          <label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
203         </td>
204         [% IF is_customer %]
205         <td>
206          <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
207          <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
208         </td>
209         [%- END %]
210        </tr>
211
212        <tr>
213         <td>
214          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
215          <label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
216         </td>
217
218         [% IF is_customer %]
219         <td>
220          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
221          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
222         </td>
223         [% END %]
224        </tr>
225
226        <tr>
227         <td>
228          <input name="l_department" id="l_department" class="checkbox" type="checkbox" value="Y">
229          <label for="l_department">[% "Department" | $T8 %]</label>
230         </td>
231
232         <td>
233          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
234          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
235         </td>
236        </tr>
237
238        <tr>
239         <td>
240          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
241          <label for="l_employee">[% 'Employee' | $T8 %]</label>
242         </td>
243
244         <td>
245          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
246          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
247         </td>
248        </tr>
249
250        <tr>
251         <td>
252          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
253          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
254         </td>
255
256         <td>
257          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y"[% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]>
258          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
259         </td>
260        </tr>
261
262       </table>
263      </td>
264     </tr>
265    </table>
266   </p>
267
268   <hr size="3" noshade>
269
270   <p>
271    <input type="hidden" name="nextsub" value="orders">
272    <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
273    <input type="hidden" name="type" value="[% HTML.escape(type) %]">
274
275    <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
276   </p>
277  </form>