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