]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/ClientConfig.pm
use-cases for CH-modus adjusted
[kivitendo-erp.git] / SL / Controller / ClientConfig.pm
index ded1a33fb9d3d5ca231a180528bf52562a8dbfef..a69779a60b4a712ce36eb86e00c9e82b77800a2d 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;
 }