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