Revision 113533ea
Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt
SL/Controller/Admin.pm | ||
---|---|---|
633 | 633 |
|
634 | 634 |
my $defaults = SL::DefaultManager->new($::lx_office_conf{system}->{default_manager}); |
635 | 635 |
$::form->{favicon} = "favicon.ico"; |
636 |
$::form->{countrymode} = $defaults->country('DE'); |
|
637 |
$::form->{chart} = $defaults->chart_of_accounts('Germany-DATEV-SKR03EU'); |
|
638 |
$::form->{defaultcurrency} = $defaults->currency('EUR'); |
|
639 |
$::form->{precision} = $defaults->precision(0.01); |
|
640 |
$::form->{accounting_method} = $defaults->accounting_method('cash'); |
|
641 |
$::form->{inventory_system} = $defaults->inventory_system('periodic'); |
|
642 |
$::form->{profit_determination} = $defaults->profit_determination('balance'); |
|
636 |
$::form->{countrymode} = $defaults->country('DE'); |
|
637 |
$::form->{chart} = $defaults->chart_of_accounts('Germany-DATEV-SKR03EU'); |
|
638 |
$::form->{defaultcurrency} = $defaults->currency('EUR'); |
|
639 |
$::form->{precision} = $defaults->precision(0.01); |
|
640 |
$::form->{accounting_method} = $defaults->accounting_method('cash'); |
|
641 |
$::form->{inventory_system} = $defaults->inventory_system('periodic'); |
|
642 |
$::form->{profit_determination} = $defaults->profit_determination('balance'); |
|
643 |
$::form->{feature_balance} = $defaults->feature_balance(1); |
|
644 |
$::form->{feature_datev} = $defaults->feature_datev(1); |
|
645 |
$::form->{feature_erfolgsrechnung} = $defaults->feature_erfolgsrechnung(0); |
|
646 |
$::form->{feature_eurechnung} = $defaults->feature_eurechnung(1); |
|
647 |
$::form->{feature_ustva} = $defaults->feature_ustva(1); |
|
643 | 648 |
|
644 | 649 |
$self->render('admin/create_dataset', title => (t8('Database Administration') . " / " . t8('Create Dataset'))); |
645 | 650 |
} |
SL/DefaultManager/German.pm | ||
---|---|---|
4 | 4 |
use parent qw(Rose::Object); |
5 | 5 |
|
6 | 6 |
# client defaults |
7 |
sub chart_of_accounts { 'Germany-DATEV-SKR03EU' } |
|
8 |
sub accounting_method { 'cash' } |
|
9 |
sub inventory_system { 'periodic' } |
|
10 |
sub profit_determination { 'income' } |
|
11 |
sub currency { 'EUR' } |
|
12 |
sub precision { 0.01 } |
|
7 |
sub chart_of_accounts { 'Germany-DATEV-SKR03EU' } |
|
8 |
sub accounting_method { 'cash' } |
|
9 |
sub inventory_system { 'periodic' } |
|
10 |
sub profit_determination { 'income' } |
|
11 |
sub currency { 'EUR' } |
|
12 |
sub precision { 0.01 } |
|
13 |
sub feature_balance { 1 } |
|
14 |
sub feature_datev { 1 } |
|
15 |
sub feature_erfolgsrechnung { 0 } |
|
16 |
sub feature_eurechnung { 1 } |
|
17 |
sub feature_ustva { 1 } |
|
13 | 18 |
|
14 | 19 |
# user defaults |
15 |
sub numberformat { '1.000,00' } |
|
16 |
sub dateformat { 'dd.mm.yy' } |
|
17 |
sub timeformat { 'hh:mm' } |
|
20 |
sub numberformat { '1.000,00' }
|
|
21 |
sub dateformat { 'dd.mm.yy' }
|
|
22 |
sub timeformat { 'hh:mm' }
|
|
18 | 23 |
|
19 | 24 |
# default for login/admin areas |
20 |
sub country { 'DE' } |
|
21 |
sub language { 'de' } |
|
25 |
sub country { 'DE' }
|
|
26 |
sub language { 'de' }
|
|
22 | 27 |
|
23 | 28 |
1; |
SL/DefaultManager/Swiss.pm | ||
---|---|---|
4 | 4 |
use parent qw(Rose::Object); |
5 | 5 |
|
6 | 6 |
# client defaults |
7 |
sub chart_of_accounts { 'Switzerland-deutsch-MWST-2014' } |
|
8 |
sub accounting_method { 'accrual' } |
|
9 |
sub inventory_system { 'periodic' } |
|
10 |
sub profit_determination { 'balance' } |
|
11 |
sub currency { 'CHF' } |
|
12 |
sub precision { 0.05 } |
|
7 |
sub chart_of_accounts { 'Switzerland-deutsch-MWST-2014' } |
|
8 |
sub accounting_method { 'accrual' } |
|
9 |
sub inventory_system { 'periodic' } |
|
10 |
sub profit_determination { 'balance' } |
|
11 |
sub currency { 'CHF' } |
|
12 |
sub precision { 0.05 } |
|
13 |
sub feature_balance { 1 } |
|
14 |
sub feature_datev { 0 } |
|
15 |
sub feature_erfolgsrechnung { 1 } |
|
16 |
sub feature_eurechnung { 0 } |
|
17 |
sub feature_ustva { 0 } |
|
13 | 18 |
|
14 | 19 |
# user defaults |
15 |
sub numberformat { "1'000.00" } |
|
16 |
sub dateformat { 'dd.mm.yy' } |
|
17 |
sub timeformat { 'hh:mm' } |
|
20 |
sub numberformat { "1'000.00" }
|
|
21 |
sub dateformat { 'dd.mm.yy' }
|
|
22 |
sub timeformat { 'hh:mm' }
|
|
18 | 23 |
|
19 | 24 |
# default for login/admin areas |
20 |
sub country { 'CH' } |
|
21 |
sub language { 'de' } |
|
25 |
sub country { 'CH' }
|
|
26 |
sub language { 'de' }
|
|
22 | 27 |
|
23 | 28 |
1; |
SL/User.pm | ||
---|---|---|
312 | 312 |
$curr = selectfirst_hashref_query($form, $dbh, $query, $form->{defaultcurrency}); |
313 | 313 |
} |
314 | 314 |
|
315 |
$query = qq|UPDATE defaults SET accounting_method = ?, profit_determination = ?, inventory_system = ?, precision = ?, currency_id = ?|; |
|
315 |
$query = qq|UPDATE defaults SET |
|
316 |
accounting_method = ?, |
|
317 |
profit_determination = ?, |
|
318 |
inventory_system = ?, |
|
319 |
precision = ?, |
|
320 |
currency_id = ?, |
|
321 |
feature_balance = ?, |
|
322 |
feature_datev = ?, |
|
323 |
feature_erfolgsrechnung = ?, |
|
324 |
feature_eurechnung = ?, |
|
325 |
feature_ustva = ? |
|
326 |
|; |
|
316 | 327 |
do_query($form, $dbh, $query, |
317 | 328 |
$form->{accounting_method}, |
318 | 329 |
$form->{profit_determination}, |
319 | 330 |
$form->{inventory_system}, |
320 | 331 |
$form->parse_amount(\%::myconfig, $form->{precision_as_number}), |
321 | 332 |
$curr->{id}, |
333 |
$form->{feature_balance}, |
|
334 |
$form->{feature_datev}, |
|
335 |
$form->{feature_erfolgsrechnung}, |
|
336 |
$form->{feature_eurechnung}, |
|
337 |
$form->{feature_ustva} |
|
322 | 338 |
); |
323 | 339 |
|
324 | 340 |
$dbh->disconnect; |
templates/webpages/admin/create_dataset.html | ||
---|---|---|
63 | 63 |
[% L.hidden_tag("dbpasswd", FORM.dbpasswd) %] |
64 | 64 |
[% L.hidden_tag("dbdefault", FORM.dbdefault) %] |
65 | 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) %] |
|
71 |
|
|
66 | 72 |
|
67 | 73 |
<hr size="3" noshade> |
68 | 74 |
|
Auch abrufbar als: Unified diff
preferences to client-features managed