6 [% INCLUDE 'common/flash.html' %]
8 <h1>[% HTML.escape(title) %]</h1>
10 <form method="post" action="controller.pl">
15 [% LxERP.t8('You can either create a new database or chose an existing database.') %]
16 [% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
19 [% IF !superuser.have_privileges %]
21 [% LxERP.t8("Database superuser privileges are required for parts of the database modifications.") %]
22 [% LxERP.t8("Please provide corresponding credentials.") %]
27 <table class="tbl-horizontal">
30 <th>[% LxERP.t8('Existing Datasets') %]</th>
31 <td>[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
34 <th>[% LxERP.t8('Create Dataset') %]</th>
35 <td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
37 [% IF !superuser.have_privileges %]
39 <th>[% LxERP.t8("Database Superuser") %]</th>
40 <td>[% L.input_tag("database_superuser_user", superuser.username) %]</td>
43 <th>[% LxERP.t8("Password") %]</th>
44 <td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
48 <th>[% LxERP.t8('Default currency') %]</th>
49 <td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td>
52 <th>[% LxERP.t8('Precision') %]</th>
53 <td>[% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]</td>
56 <th>[% LxERP.t8('Create Chart of Accounts') %]</th>
57 <td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
60 <th>[% LxERP.t8('Accounting method') %]</th>
61 <td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td>
64 <th>[% LxERP.t8('Inventory system') %]</th>
65 <td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td>
68 <th>[% LxERP.t8('Profit determination') %]</th>
69 <td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td>
74 [% L.hidden_tag("dbhost", FORM.dbhost) %]
75 [% L.hidden_tag("dbport", FORM.dbport) %]
76 [% L.hidden_tag("dbuser", FORM.dbuser) %]
77 [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
78 [% L.hidden_tag("dbdefault", FORM.dbdefault) %]
79 [% L.hidden_tag("action", "Admin/do_create_dataset") %]
80 [% L.hidden_tag("feature_balance", FORM.feature_balance) %]
81 [% L.hidden_tag("feature_datev", FORM.feature_datev) %]
82 [% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %]
83 [% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %]
84 [% L.hidden_tag("feature_ustva", FORM.feature_ustva) %]
87 [% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
90 </div><!-- /.wrapper -->
94 <script type="text/javascript"><!--
96 function comment_selected_chart(s) {
98 alert("SKR07 Austria ist noch Stand 2002." +
100 "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
102 "fuer Kunden im Ausland." +
104 "Hinweis vom 20.09.2011");
109 function select_country_defaults(country) {
110 if (/^CH/.test(country)) {
111 document.getElementById('defaultcurrency').value='CHF';
112 document.getElementById('precision').value='0.05';
113 document.getElementById('chart').value='Switzerland-deutsch-MWST-2014';
114 document.getElementById('accounting_method').value='accrual';
115 document.getElementById('inventory_system').value='periodic';
116 document.getElementById('profit_determination').value='balance';
118 document.getElementById('defaultcurrency').value='EUR';
119 document.getElementById('precision').value='0.01';
120 document.getElementById('chart').value='Germany-DATEV-SKR03EU';
121 document.getElementById('accounting_method').value='cash';
122 document.getElementById('inventory_system').value='periodic';
123 document.getElementById('profit_determination').value='income';