]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/do/search.html
date error in mapping
[mfinanz.git] / templates / webpages / do / search.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE HTML %][%- USE LxERP %][%- USE P -%]
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" id="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">[% P.input_tag(vc, "", class="fixed_width initial_focus") %]</td>
27     </tr>
28
29     <tr>
30      <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
31      <td colspan="3">[% L.input_tag("cp_name", '', class="fixed_width") %]</td>
32     </tr>
33
34     <tr>
35      <th align="right">[% 'Delivery Order Number' | $T8 %]</th>
36      <td colspan="3"><input name="donumber" class="fixed_width"></td>
37     </tr>
38
39     <tr>
40      <th align="right">[% 'Order Number' | $T8 %]</th>
41      <td colspan="3"><input name="ordnumber" class="fixed_width"></td>
42     </tr>
43
44     [%- IF type == "purchase_delivery_order" %]
45     <tr>
46      <th align="right">[% 'Order Confirmation Number' | $T8 %]</th>
47      <td colspan="3"><input name="order_confirmation_number" class="fixed_width"></td>
48     </tr>
49
50     <tr>
51      <th align="right">[% 'Vendor Confirmation Number' | $T8 %]</th>
52      <td colspan="3"><input name="vendor_confirmation_number" class="fixed_width"></td>
53     </tr>
54     [%- END %]
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>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class="fixed_width") %]</td>
65     </tr>
66     [%- END %]
67
68     <tr>
69      <th align="right">[% 'Employee' | $T8 %]</th>
70      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
71     </tr>
72
73     [%- IF is_customer %]
74     <tr>
75      <th align="right">[% 'Salesman' | $T8 %]</th>
76      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
77     </tr>
78     [%- END %]
79
80     <tr>
81      <th align="right">[% 'Transaction description' | $T8 %]</th>
82      <td><input name="transaction_description" class="fixed_width"></td>
83      <th align="right">[% 'Part Description' | $T8 %]</th>
84      <td><input name="parts_description" size="20" class="fixed_width"></td>
85     </tr>
86
87     <tr>
88      <th align="right">[% 'Full Text' | $T8 %]</th>
89      <td colspan="3">[% L.input_tag('fulltext', '', class="fixed_width") %]</td>
90     </tr>
91
92     <tr>
93      <th align="right">[% 'Project Number' | $T8 %]</th>
94      <td>
95       <select name="project_id" class="fixed_width">
96        <option></option>
97        [%- FOREACH row = ALL_PROJECTS %]
98        <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
99        [%- END %]
100       </select>
101      </td>
102      <th align="right">[% 'Part Number' | $T8 %]</th>
103      <td><input name="parts_partnumber" size="20", class="fixed_width"></td>
104     </tr>
105
106     <tr>
107      <th align="right">[% 'Serial Number' | $T8 %]</th>
108      <td><input name="serialnumber" class="fixed_width"></td>
109      <th align="right">[% 'Charge Number' | $T8 %]</th>
110      <td><input name="chargenumber" 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       [% 'Bis' | $T8 %]
127       [% L.date_tag('transdateto') %]
128      </td>
129     </tr>
130
131     <tr>
132      <th align="right">[% 'Reqdate' | $T8 %] [% 'From' | $T8 %]</th>
133      <td>
134       [% L.date_tag('reqdatefrom') %]
135       [% 'Bis' | $T8 %]
136       [% L.date_tag('reqdateto') %]
137      </td>
138     </tr>
139
140     <tr>
141      <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
142      <td>
143        [% L.date_tag('insertdatefrom') %]
144        [% 'Bis' | $T8 %]
145        [% L.date_tag('insertdateto') %]
146      </td>
147     </tr>
148
149     <tr>
150      <th align="right">[% 'Include in Report' | $T8 %]</th>
151      <td colspan="5">
152       <table>
153        <tr>
154         <td>
155          <input type="checkbox" name="open" value="1" id="open" checked>
156          <label for="open">[% 'Open' | $T8 %]</label>
157         </td>
158         <td>
159          <input type="checkbox" name="closed" value="1" id="closed">
160          <label for="closed">[% 'Closed' | $T8 %]</label>
161         </td>
162        </tr>
163
164        <tr>
165         <td>
166          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
167          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
168         </td>
169         <td>
170          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
171          <label for="delivered">[% 'Delivered' | $T8 %]</label></td>
172        </tr>
173
174        <tr>
175         <td>
176          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
177          <label for="l_id">[% 'ID' | $T8 %]</label>
178         </td>
179
180         <td>
181          <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
182          <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
183         </td>
184        </tr>
185
186        <tr>
187         <td>
188          <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
189          <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
190         </td>
191
192         [%- IF type == "purchase_delivery_order" %]
193         <td>
194          <input name="l_order_confirmation_number" id="l_order_confirmation_number" class="checkbox" type="checkbox" value="Y" checked>
195          <label for="l_order_confirmation_number">[% 'Order Confirmation Number' | $T8 %]</label>
196         </td>
197         <td>
198          <input name="l_vendor_confirmation_number" id="l_vendor_confirmation_number" class="checkbox" type="checkbox" value="Y" checked>
199          <label for="l_vendor_confirmation_number">[% 'Vendor Confirmation Number' | $T8 %]</label>
200         </td>
201         [%- END %]
202
203         <td>
204          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
205          <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
206         </td>
207        </tr>
208
209        <tr>
210         <td>
211          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
212          <label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
213         </td>
214         <td>
215          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
216          <label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
217         </td>
218         [% IF is_customer %]
219         <td>
220          <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
221          <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
222         </td>
223         [%- END %]
224        </tr>
225
226        <tr>
227         <td>
228          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
229          <label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
230         </td>
231
232         [% IF is_customer %]
233         <td>
234          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
235          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
236         </td>
237         [% END %]
238        </tr>
239
240        <tr>
241         <td>
242          <input name="l_department" id="l_department" class="checkbox" type="checkbox" value="Y">
243          <label for="l_department">[% "Department" | $T8 %]</label>
244         </td>
245
246         <td>
247          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
248          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
249         </td>
250        </tr>
251
252        <tr>
253         <td>
254          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
255          <label for="l_employee">[% 'Employee' | $T8 %]</label>
256         </td>
257
258         <td>
259          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
260          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
261         </td>
262        </tr>
263
264        <tr>
265         <td>
266          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
267          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
268         </td>
269
270         <td>
271          <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 %]>
272          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
273         </td>
274        </tr>
275
276        <tr>
277         <td>
278          <input name="l_items" id="l_items" class="checkbox" type="checkbox" value="Y">
279          <label for="l_items">[% 'Positions' | $T8 %]</label>
280         </td>
281        </tr>
282
283       </table>
284      </td>
285     </tr>
286    </table>
287   </p>
288
289    <input type="hidden" name="action" value="orders">
290    <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
291    <input type="hidden" name="type" value="[% HTML.escape(type) %]">
292  </form>