<body> entfernt.
[kivitendo-erp.git] / templates / webpages / oe / search.html
1 [%- USE HTML %]
2 [%- USE T8 %]
3 [%- USE LxERP %]
4 [%- USE L %]
5 [%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
6 [%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
7
8 <form method="post" action="oe.pl">
9
10  <p><div class="listtop">[% HTML.escape(title) %]</div></p>
11
12 <table width="100%">
13  <tr>
14   <td>
15    <table>
16     <tr>
17      <th align="right">[% HTML.escape(vclabel) %]</th>
18      <td colspan="3">
19             [%- INCLUDE 'generic/multibox.html'
20                  name          = vc,
21                  default       = vc == 'customer' ? oldcustomer : oldvendor,
22                  style         = 'width: 250px',
23                  DATA          = ALL_VC,
24                  id_sub        = 'vc_keys',
25                  label_key     = 'name',
26                  select        = vc_select,
27                  limit         = vclimit,
28                  show_empty    = 1,
29                  allow_textbox = 1,
30                  -%]
31      </td>
32     </tr>
33 [%- IF ALL_DEPARTMENTS.size %]
34     <tr>
35      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
36      <td colspan="3">
37             [%- INCLUDE 'generic/multibox.html'
38                  name          = 'department_id',
39                  style         = 'width: 250px',
40                  DATA          = ALL_DEPARTMENTS,
41                  id_key        = 'id',
42                  label_key     = 'description',
43                  limit         = vclimit,
44                  show_empty    = 1,
45                  allow_textbox = 1,
46             -%]
47      </td>
48     </tr>
49 [%- END %]
50     <tr>
51      <th align="right">[% HTML.escape(ordlabel) %]</th>
52      <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
53     </tr>
54     <tr>
55      <th align="right">[% 'Employee' | $T8 %]</th>
56      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
57     </tr>
58     <tr>
59      <th align="right">[% 'Salesman' | $T8 %]</th>
60      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
61     </tr>
62     <tr>
63      <th align="right">[% 'Transaction description' | $T8 %]</th>
64      <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
65     </tr>
66     <tr>
67      <th align="right">[% 'Project Number' | $T8 %]</th>
68      <td colspan="3">
69             [%- INCLUDE 'generic/multibox.html'
70                  name          =  vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
71                  style         = "width: 250px",
72                  DATA          =  ALL_PROJECTS,
73                  id_key        = 'id',
74                  label_key     = 'projectnumber',
75                  limit         = vclimit,
76                  show_empty    = 1,
77                  allow_textbox = 1,
78             -%]
79      </td>
80     </tr>
81     <tr>
82      <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
83      <td>
84        [% L.date_tag('transdatefrom') %]
85      </td>
86      <th align="right">[% 'Bis' | $T8 %]</th>
87      <td>
88       [% L.date_tag('transdateto') %]
89      </td>
90     </tr>
91     <tr>
92      <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
93      <td>
94        [% L.date_tag('reqdatefrom') %]
95      </td>
96      <th align="right">[% 'Bis' | $T8 %]</th>
97      <td>
98        [% L.date_tag('reqdateto') %]
99      </td>
100     </tr>
101     <tr>
102      <th align="right">[% 'Include in Report' | $T8 %]</th>
103      <td colspan="5">
104       <table>
105        <tr>
106         <td>
107          <input type="checkbox" name="open" value="1" id="open" checked>
108          <label for="open">[% 'Open' | $T8 %]</label>
109         </td>
110         <td>
111          <input type="checkbox" name="closed" value="1" id="closed">
112          <label for="closed">[% 'Closed' | $T8 %]</label>
113         </td>
114        </tr>
115 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
116        <tr>
117         <td>
118          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
119          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
120         </td>
121         <td>
122          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
123          <label for="delivered">[% 'Delivery Order created' | $T8 %]</label>
124         </td>
125        </tr>
126 [%- END %]
127 [%- IF type == 'sales_order' %]
128        <tr>
129         <td>
130          [% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
131         </td>
132         <td>
133          [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
134         </td>
135        </tr>
136 [%- END %]
137        <tr>
138         <td>
139          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
140          <label for="l_id">[% 'ID' | $T8 %]</label>
141         </td>
142         <td>
143          <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
144          <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
145         </td>
146        </tr>
147        <tr>
148         <td>
149          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
150          <label for="l_transdate">[% 'Date' | $T8 %]</label>
151         </td>
152         <td>
153          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
154          <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
155         </td>
156        </tr>
157        <tr>
158         <td>
159          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
160          <label for="l_name">[% HTML.escape(vclabel) %]
161         </td>
162         <td>
163          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
164          <label for="l_employee">[% 'Employee' | $T8 %]</label>
165         </td>
166         <td>
167          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
168          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
169         </td>
170        </tr>
171        <tr>
172         <td>
173          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
174          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
175         </td>
176        </tr>
177        <tr>
178         <td>
179          <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
180          <label for="l_netamount">[% 'Amount' | $T8 %]</label>
181         </td>
182         <td>
183          <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
184          <label for="l_tax">[% 'Tax' | $T8 %]</label>
185         </td>
186         <td>
187          <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
188          <label for="l_amount">[% 'Total' | $T8 %]</label>
189         </td>
190        </tr>
191        <tr>
192         <td>
193          <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
194          <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
195         </td>
196         <td>
197          <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
198          <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
199         </td>
200        </tr>
201        <tr>
202         <td>
203          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
204          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
205         </td>
206         <td>
207          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
208          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
209         </td>
210        </tr>
211        <tr>
212         <td>
213          <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
214          <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
215         </td>
216         <td>
217          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
218          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
219         </td>
220        </tr>
221        <tr>
222         <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
223        </tr>
224        <tr>
225         <td>
226          <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
227          <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
228         </td>
229         <td>
230          <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
231          <label for="l_country">[% 'Country' | $T8 %]</label>
232         </td>
233         <td>
234          <input name="l_ustid"  id="l_ustid" class="checkbox" type="checkbox" value="Y">
235          <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
236         </td>
237        </tr>
238 [%- IF type == 'sales_order' %]
239        <tr><td colspan="3"><hr></td></tr>
240 [%- END %]
241       </table>
242      </td>
243     </tr>
244    </table>
245   </td>
246  </tr>
247 </table>
248
249 <br>
250 <input type="hidden" name="nextsub" value="orders">
251 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
252 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
253 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
254 </form>
255