X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=templates%2Fwebpages%2Fadmin%2Fcreate_dataset.html;fp=templates%2Fwebpages%2Fadmin%2Fcreate_dataset.html;h=48998c6a96a721a145311d149eecb21c911dc664;hp=5b776569bc3f777f563c19f740cde5e3910f81c0;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/templates/webpages/admin/create_dataset.html b/templates/webpages/admin/create_dataset.html index 5b776569b..48998c6a9 100644 --- a/templates/webpages/admin/create_dataset.html +++ b/templates/webpages/admin/create_dataset.html @@ -10,6 +10,13 @@ [% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]

+ [% IF !superuser.have_privileges %] +

+ [% LxERP.t8("Database superuser privileges are required for parts of the database modifications.") %] + [% LxERP.t8("Please provide corresponding credentials.") %] +

+ [% END %] + @@ -21,29 +28,51 @@ + [% IF !superuser.have_privileges %] + + + + + + + + + + [% END %] + + + + + + - + + + + + + - + - + - + - +
[% LxERP.t8('Existing Datasets') %][% L.input_tag('db', FORM.db, class="initial_focus") %]
[% LxERP.t8("Database Superuser") %][% L.input_tag("database_superuser_user", superuser.username) %]
[% LxERP.t8("Password") %][% L.input_tag("database_superuser_password", superuser.password, type="password") %]

[% LxERP.t8('Default currency') %][% L.input_tag('defaultcurrency', FORM.defaultcurrency || 'EUR') %][% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]
[% LxERP.t8('Precision') %][% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]
[% LxERP.t8('Create Chart of Accounts') %][% L.select_tag('chart', SELF.all_charts, onchange='comment_selected_chart(this.value)', default=(FORM.chart || 'Germany-DATEV-SKR03EU')) %][% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]
[% LxERP.t8('Accounting method') %][% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method || 'cash')) %][% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]
[% LxERP.t8('Inventory system') %][% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system || 'periodic')) %][% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]
[% LxERP.t8('Profit determination') %][% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination || 'income')) %][% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]
@@ -53,6 +82,12 @@ [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %] [% L.hidden_tag("dbdefault", FORM.dbdefault) %] [% L.hidden_tag("action", "Admin/do_create_dataset") %] + [% L.hidden_tag("feature_balance", FORM.feature_balance) %] + [% L.hidden_tag("feature_datev", FORM.feature_datev) %] + [% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %] + [% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %] + [% L.hidden_tag("feature_ustva", FORM.feature_ustva) %] +
@@ -67,30 +102,35 @@ function comment_selected_chart(s) { if (s == 'Austria') { - alert("SKR07 Austria ist noch Stand 2002." + + alert("SKR07 Austria ist noch Stand 2002." + "\n" + "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" + "\n" + "fuer Kunden im Ausland." + "\n" + "Hinweis vom 20.09.2011"); - - } else if (s == 'Swiss-German') { - alert("Hinweis: Das ist weder ein Schweizer Kontorahmen nach Kaefer noch ein " + - "Schweizer KMU-Kontenrahmen, sondern ein angelehnter KMU-Kontenrahmen fuer " + - "ein EDV-Dienstleistungsunternehmen mit Stand 2006 (Bspw. 32001 Hardware, " + - "statt 3200 Warenertrag)." + - "\n" + - "Ferner sind keine Buchungsgruppe vorkonfiguriert, somit wird " + - "standardmaessig keine Rechnung mit Steuer ausgewiesen." + - "\n" + - "Zum schnellen Testen und Zusammenhaenge verstehen waehlen Sie lieber einen " + - "deutschen Kontenrahmen aus (SKR03 oder SKR04) und passen die Steuer an." + - "\n" + - "Hinweis vom 21.09.2011"); } + return true; +} +function select_country_defaults(country) { + if (/^CH/.test(country)) { + document.getElementById('defaultcurrency').value='CHF'; + document.getElementById('precision').value='0.05'; + document.getElementById('chart').value='Switzerland-deutsch-MWST-2014'; + document.getElementById('accounting_method').value='accrual'; + document.getElementById('inventory_system').value='periodic'; + document.getElementById('profit_determination').value='balance'; + } else { + document.getElementById('defaultcurrency').value='EUR'; + document.getElementById('precision').value='0.01'; + document.getElementById('chart').value='Germany-DATEV-SKR03EU'; + document.getElementById('accounting_method').value='cash'; + document.getElementById('inventory_system').value='periodic'; + document.getElementById('profit_determination').value='income'; + } return true; } + -->