],
},
+ 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 => {
+ list => t8('Departments'),
+ add => t8('Add department'),
+ edit => t8('Edit department'),
+ },
+ },
+
part_classification => {
# Make locales.pl happy: $self->render("simple_system_setting/_part_classification_form")
class => 'PartClassification',
{ 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 = (