1 [%- USE HTML %][%- USE LxERP -%][%- USE T8 -%][%- USE L -%]
3 [% INCLUDE 'common/flash.html' %]
5 <h1>[% HTML.escape(title) %]</h1>
7 <form method="post" action="controller.pl">
9 [% LxERP.t8('You can either create a new database or chose an existing database.') %]
10 [% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
15 <th valign="top" align="right" nowrap>[% LxERP.t8('Existing Datasets') %]</th>
16 <td valign="top">[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
20 <th align="right" nowrap>[% LxERP.t8('Create Dataset') %]</th>
21 <td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
25 <td colspan="1"> </td>
26 <td><hr size="1" noshade></td>
30 <th align="right" nowrap>[% LxERP.t8('Default currency') %]</th>
31 <td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td>
35 <th align="right" nowrap>[% LxERP.t8('Precision') %]</th>
36 <td>[% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]</td>
40 <th valign="top" align="right" nowrap>[% LxERP.t8('Create Chart of Accounts') %]</th>
41 <td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
45 <th valign="top" align="right" nowrap>[% LxERP.t8('Accounting method') %]</th>
46 <td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td>
50 <th valign="top" align="right" nowrap>[% LxERP.t8('Inventory system') %]</th>
51 <td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td>
55 <th valign="top" align="right" nowrap>[% LxERP.t8('Profit determination') %]</th>
56 <td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td>
60 [% L.hidden_tag("dbhost", FORM.dbhost) %]
61 [% L.hidden_tag("dbport", FORM.dbport) %]
62 [% L.hidden_tag("dbuser", FORM.dbuser) %]
63 [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
64 [% L.hidden_tag("dbdefault", FORM.dbdefault) %]
65 [% L.hidden_tag("action", "Admin/do_create_dataset") %]
66 [% L.hidden_tag("feature_balance", FORM.feature_balance) %]
67 [% L.hidden_tag("feature_datev", FORM.feature_datev) %]
68 [% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %]
69 [% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %]
70 [% L.hidden_tag("feature_ustva", FORM.feature_ustva) %]
76 [% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
81 <script type="text/javascript">
84 function comment_selected_chart(s) {
86 alert("SKR07 Austria ist noch Stand 2002." +
88 "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
90 "fuer Kunden im Ausland." +
92 "Hinweis vom 20.09.2011");
97 function select_country_defaults(country) {
98 if (/^CH/.test(country)) {
99 document.getElementById('defaultcurrency').value='CHF';
100 document.getElementById('precision').value='0.05';
101 document.getElementById('chart').value='Switzerland-deutsch-MWST-2014';
102 document.getElementById('accounting_method').value='accrual';
103 document.getElementById('inventory_system').value='periodic';
104 document.getElementById('profit_determination').value='balance';
106 document.getElementById('defaultcurrency').value='EUR';
107 document.getElementById('precision').value='0.01';
108 document.getElementById('chart').value='Germany-DATEV-SKR03EU';
109 document.getElementById('accounting_method').value='cash';
110 document.getElementById('inventory_system').value='periodic';
111 document.getElementById('profit_determination').value='income';