]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/SimpleSystemSetting.pm
SimpleSystemSetting: Umstellung von »Projekttypen« und »Projekstatus«
[mfinanz.git] / SL / Controller / SimpleSystemSetting.pm
index 979de32692c201a672d08c6ac3fd89bce9f271c5..979c2d298ff2b825ddfdcf76a3e879b9cbb27a0c 100644 (file)
@@ -40,6 +40,21 @@ my %supported_types = (
     ],
   },
 
+  business => {
+    # Make locales.pl happy: $self->render("simple_system_setting/_business_form")
+    class  => 'Business',
+    titles => {
+      list => t8('Businesses'),
+      add  => t8('Add business'),
+      edit => t8('Edit business'),
+    },
+    list_attributes => [
+      { method => 'description',         title => t8('Description'), },
+      {                                  title => t8('Discount'), formatter => sub { $_[0]->discount_as_percent . ' %' }, align => 'right' },
+      { method => 'customernumberinit',  title => t8('Customernumberinit'), },
+    ],
+  },
+
   department => {
     class  => 'Department',
     titles => {
@@ -107,6 +122,25 @@ my %supported_types = (
       { method => 'obsolete',   title => t8('Obsolete'), formatter => sub { $_[0]->obsolete ? t8('yes') : t8('no') } },
     ],
   },
+
+  project_status => {
+    class  => 'ProjectStatus',
+    titles => {
+      list => t8('Project statuses'),
+      add  => t8('Add project status'),
+      edit => t8('Edit project status'),
+    },
+  },
+
+  project_type => {
+    class  => 'ProjectType',
+    titles => {
+      list => t8('Project types'),
+      add  => t8('Add project type'),
+      edit => t8('Edit project type'),
+    },
+  },
+
 );
 
 my @default_list_attributes = (