]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/custom_data_export_designer/edit.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / custom_data_export_designer / edit.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2
3 <h1>[% FORM.title %] — [% LxERP.t8("Step #1/#2", 1, 2) %] — [% LxERP.t8("Basic Data") %]</h1>
4 <div class="wrapper">
5   [% INCLUDE 'common/flash.html' %]
6
7   <form method="post" action="controller.pl" id="form">
8     [% L.hidden_tag("id", SELF.query.id) %]
9     <div class="input-panel control-panel">
10       <table class="tbl-horizontal wi-moderate">
11         <tr>
12           <th>[% LxERP.t8("Name") %]</th>
13           <td>[% L.input_tag("query.name", SELF.query.name, style="width: 800px", "data-validate"="required") %]</td>
14         </tr>
15         <tr>
16           <th>[% LxERP.t8("Required access right") %]</th>
17           <td>[% L.select_tag("query.access_right", SELF.access_rights, default=SELF.query.access_right, style="width: 800px") %]</td>
18         </tr>
19         <tr>
20           <th>[% LxERP.t8("Description") %]</th>
21           <td>[% L.textarea_tag("query.description", SELF.query.description, rows=5, style="width: 800px") %]</td>
22         </tr>
23         <tr>
24           <th>[% LxERP.t8("SQL query") %]</th>
25           <td>[% L.textarea_tag("query.sql_query", SELF.query.sql_query, rows=20, style="width: 800px", "data-validate"="required") %]</td>
26         </tr>
27       </table>
28     </div>
29   </form>
30
31   <p>
32   [% LxERP.t8("The SQL query can be parameterized with variables named as follows: <%name%>.") %]
33   [% LxERP.t8("On the next page the type of all variables can be set.") %]
34   [% LxERP.t8("Note that parameter names must not be quoted.") %]
35   [% LxERP.t8("Example") %]:
36   </p>
37
38   <pre>
39 SELECT extract(YEAR FROM oe.transdate) AS &quot;Jahr&quot;, SUM(oe.amount) AS &quot;Angebotssumme&quot;
40 FROM oe
41 LEFT JOIN employee ON (oe.employee_id = employee.id)
42 WHERE record_type = 'sales_quotation'
43   AND (employee.login = &lt;%Benutzer-Login%&gt;)
44 GROUP BY &quot;Jahr&quot;
45 ORDER BY &quot;Jahr&quot;
46   </pre>
47 </div>