use-cases for CH-modus adjusted
[kivitendo-erp.git] / SL / Controller / ClientConfig.pm
index ded1a33..a69779a 100644 (file)
@@ -16,6 +16,7 @@ use SL::Helper::Flash;
 use SL::Locale::String qw(t8);
 use SL::PriceSource::ALL;
 use SL::Template;
+use SL::DBUtils;
 
 __PACKAGE__->run_before('check_auth');
 
@@ -28,6 +29,7 @@ sub action_edit {
   my ($self, %params) = @_;
 
   $::form->{use_templates} = $self->defaults->templates ? 'existing' : 'new';
+  $::form->{use_case} = scalar(grep(/^Switzerland/, (selectrow_query($::form, $::form->get_standard_dbh, 'SELECT coa FROM defaults'))[0]));
   $self->edit_form;
 }