Revision 1e403f48
Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt
templates/webpages/admin/create_dataset.html | ||
---|---|---|
21 | 21 |
<td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td> |
22 | 22 |
</tr> |
23 | 23 |
|
24 |
<tr> |
|
25 |
<th valign="top" align="right" nowrap>[% LxERP.t8('Country') %]</th> |
|
26 |
<td>[% L.select_tag('countrymode', SELF.all_countrymodes, title_key="title", default=(FORM.countrymode), onchange='select_country_defaults(this.value)') %]</td> |
|
27 |
</tr> |
|
28 |
|
|
29 |
<tr> |
|
30 |
<td colspan="1"> </td> |
|
31 |
<td><hr size="1" noshade></td> |
|
32 |
</tr> |
|
33 |
|
|
24 | 34 |
<tr> |
25 | 35 |
<th align="right" nowrap>[% LxERP.t8('Default currency') %]</th> |
26 |
<td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency || 'EUR') %]</td> |
|
36 |
<td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td> |
|
37 |
</tr> |
|
38 |
|
|
39 |
<tr> |
|
40 |
<th align="right" nowrap>[% LxERP.t8('Precision') %]</th> |
|
41 |
<td>[% L.input_tag('precision', FORM.precision) %]</td> |
|
27 | 42 |
</tr> |
28 | 43 |
|
29 | 44 |
<tr> |
30 | 45 |
<th valign="top" align="right" nowrap>[% LxERP.t8('Create Chart of Accounts') %]</th> |
31 |
<td>[% L.select_tag('chart', SELF.all_charts, onchange='comment_selected_chart(this.value)', default=(FORM.chart || 'Germany-DATEV-SKR03EU')) %]</td>
|
|
46 |
<td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
|
|
32 | 47 |
</tr> |
33 | 48 |
|
34 | 49 |
<tr> |
35 | 50 |
<th valign="top" align="right" nowrap>[% LxERP.t8('Accounting method') %]</th> |
36 |
<td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method || 'cash')) %]</td>
|
|
51 |
<td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td> |
|
37 | 52 |
</tr> |
38 | 53 |
|
39 | 54 |
<tr> |
40 | 55 |
<th valign="top" align="right" nowrap>[% LxERP.t8('Inventory system') %]</th> |
41 |
<td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system || 'periodic')) %]</td>
|
|
56 |
<td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td> |
|
42 | 57 |
</tr> |
43 | 58 |
|
44 | 59 |
<tr> |
45 | 60 |
<th valign="top" align="right" nowrap>[% LxERP.t8('Profit determination') %]</th> |
46 |
<td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination || 'income')) %]</td>
|
|
61 |
<td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td> |
|
47 | 62 |
</tr> |
48 | 63 |
</table> |
49 | 64 |
|
... | ... | |
67 | 82 |
|
68 | 83 |
function comment_selected_chart(s) { |
69 | 84 |
if (s == 'Austria') { |
70 |
alert("SKR07 Austria ist noch Stand 2002." + |
|
85 |
alert("SKR07 Austria ist noch Stand 2002." +
|
|
71 | 86 |
"\n" + |
72 | 87 |
"Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" + |
73 | 88 |
"\n" + |
74 | 89 |
"fuer Kunden im Ausland." + |
75 | 90 |
"\n" + |
76 | 91 |
"Hinweis vom 20.09.2011"); |
77 |
|
|
78 |
} else if (s == 'Swiss-German') { |
|
79 |
alert("Hinweis: Das ist weder ein Schweizer Kontorahmen nach Kaefer noch ein " + |
|
80 |
"Schweizer KMU-Kontenrahmen, sondern ein angelehnter KMU-Kontenrahmen fuer " + |
|
81 |
"ein EDV-Dienstleistungsunternehmen mit Stand 2006 (Bspw. 32001 Hardware, " + |
|
82 |
"statt 3200 Warenertrag)." + |
|
83 |
"\n" + |
|
84 |
"Ferner sind keine Buchungsgruppe vorkonfiguriert, somit wird " + |
|
85 |
"standardmaessig keine Rechnung mit Steuer ausgewiesen." + |
|
86 |
"\n" + |
|
87 |
"Zum schnellen Testen und Zusammenhaenge verstehen waehlen Sie lieber einen " + |
|
88 |
"deutschen Kontenrahmen aus (SKR03 oder SKR04) und passen die Steuer an." + |
|
89 |
"\n" + |
|
90 |
"Hinweis vom 21.09.2011"); |
|
91 | 92 |
} |
93 |
return true; |
|
94 |
} |
|
92 | 95 |
|
96 |
function select_country_defaults(country) { |
|
97 |
if (/^CH/.test(country)) { |
|
98 |
document.getElementById('defaultcurrency').value='CHF'; |
|
99 |
document.getElementById('precision').value='0.05'; |
|
100 |
document.getElementById('chart').value='Switzerland-deutsch-MWST-2014'; |
|
101 |
document.getElementById('accounting_method').value='accrual'; |
|
102 |
document.getElementById('inventory_system').value='periodic'; |
|
103 |
document.getElementById('profit_determination').value='balance'; |
|
104 |
} else { |
|
105 |
document.getElementById('defaultcurrency').value='EUR'; |
|
106 |
document.getElementById('precision').value='0.01'; |
|
107 |
document.getElementById('chart').value='Germany-DATEV-SKR03EU'; |
|
108 |
document.getElementById('accounting_method').value='cash'; |
|
109 |
document.getElementById('inventory_system').value='periodic'; |
|
110 |
document.getElementById('profit_determination').value='income'; |
|
111 |
} |
|
93 | 112 |
return true; |
94 | 113 |
} |
114 |
|
|
95 | 115 |
--> |
96 | 116 |
</script> |
Auch abrufbar als: Unified diff
Admin: create_dataset Änderungen für neue Eingenschaften