X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FController%2FAdmin.pm;h=fbf99a864d1e8424fd59e60d597fede6e86bfd5f;hb=24bb9ded832e2ed1054973fd025cfa6c5fec021e;hp=94dfc6967b2ed4b65f0d0acd8dba5f594889f019;hpb=b05b5075ac0f3cbb0823c2f513cdbcacfb17bede;p=kivitendo-erp.git diff --git a/SL/Controller/Admin.pm b/SL/Controller/Admin.pm index 94dfc6967..fbf99a864 100644 --- a/SL/Controller/Admin.pm +++ b/SL/Controller/Admin.pm @@ -115,7 +115,6 @@ sub action_new_user { my $defaults = SL::DefaultManager->new($::lx_office_conf{system}->{default_manager}); $self->user(SL::DB::AuthUser->new( config_values => { - vclimit => 200, countrycode => $defaults->language('de'), numberformat => $defaults->numberformat('1.000,00'), dateformat => $defaults->dateformat('dd.mm.yy'), @@ -490,7 +489,7 @@ sub action_lock_system { sub init_db_cfg { $::lx_office_conf{'authentication/database'} } sub init_is_locked { SL::System::InstallationLock->is_locked } -sub init_client { SL::DB::Manager::AuthClient->find_by(id => ($::form->{id} || ($::form->{client} || {})->{id})) } +sub init_client { SL::DB::Manager::AuthClient->find_by(id => (($::form->{client} || {})->{id} || $::form->{id})) } sub init_user { SL::DB::AuthUser ->new(id => ($::form->{id} || ($::form->{user} || {})->{id}))->load } sub init_group { SL::DB::AuthGroup ->new(id => ($::form->{id} || ($::form->{group} || {})->{id}))->load } sub init_printer { SL::DB::Printer ->new(id => ($::form->{id} || ($::form->{printer} || {})->{id}))->load } @@ -633,13 +632,18 @@ sub create_dataset_form { my $defaults = SL::DefaultManager->new($::lx_office_conf{system}->{default_manager}); $::form->{favicon} = "favicon.ico"; - $::form->{countrymode} = $defaults->country('DE'); - $::form->{chart} = $defaults->chart_of_accounts('Germany-DATEV-SKR03EU'); - $::form->{defaultcurrency} = $defaults->currency('EUR'); - $::form->{precision} = $defaults->precision(0.01); - $::form->{accounting_method} = $defaults->accounting_method('cash'); - $::form->{inventory_system} = $defaults->inventory_system('periodic'); - $::form->{profit_determination} = $defaults->profit_determination('balance'); + $::form->{countrymode} = $defaults->country('DE'); + $::form->{chart} = $defaults->chart_of_accounts('Germany-DATEV-SKR03EU'); + $::form->{defaultcurrency} = $defaults->currency('EUR'); + $::form->{precision} = $defaults->precision(0.01); + $::form->{accounting_method} = $defaults->accounting_method('cash'); + $::form->{inventory_system} = $defaults->inventory_system('periodic'); + $::form->{profit_determination} = $defaults->profit_determination('balance'); + $::form->{feature_balance} = $defaults->feature_balance(1); + $::form->{feature_datev} = $defaults->feature_datev(1); + $::form->{feature_erfolgsrechnung} = $defaults->feature_erfolgsrechnung(0); + $::form->{feature_eurechnung} = $defaults->feature_eurechnung(1); + $::form->{feature_ustva} = $defaults->feature_ustva(1); $self->render('admin/create_dataset', title => (t8('Database Administration') . " / " . t8('Create Dataset'))); }