X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9380035c08379c1ad6d07e9d51e24c16cbea84f2..5e55cce6abaf16fb9425bcdc5a669eaaddca3319:/SL/Controller/SimpleSystemSetting.pm diff --git a/SL/Controller/SimpleSystemSetting.pm b/SL/Controller/SimpleSystemSetting.pm index 979de3269..979c2d298 100644 --- a/SL/Controller/SimpleSystemSetting.pm +++ b/SL/Controller/SimpleSystemSetting.pm @@ -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 = (