use Rose::Object::MakeMethods::Generic (
'scalar --get_set_init' => [ qw(defaults all_warehouses all_weightunits all_languages all_currencies all_templates all_price_sources h_unit_name
+ all_project_statuses all_project_types
posting_options payment_options accounting_options inventory_options profit_options balance_startdate_method_options) ],
);
sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted }
sub init_all_languages { SL::DB::Manager::Language->get_all_sorted }
sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted }
+sub init_all_project_types { SL::DB::Manager::ProjectType->get_all_sorted }
+sub init_all_project_statuses { SL::DB::Manager::ProjectStatus->get_all_sorted }
sub init_all_weightunits { my $unit = SL::DB::Manager::Unit->find_by(name => 'kg'); $unit ? $unit->convertible_units : [] }
sub init_all_templates { +{ SL::Template->available_templates } }
sub init_h_unit_name { first { SL::DB::Manager::Unit->find_by(name => $_) } qw(Std h Stunde) };
</td>
</tr>
+ <tr><td class="listheading" colspan="4">[% LxERP.t8("Projects") %]</td></tr>
+
+ <tr>
+ <td align="right">[% LxERP.t8('Always save orders with a projectnumber (create new projects)') %]</td>
+ <td>[% L.yes_no_tag('defaults.order_always_project', SELF.defaults.order_always_project) %]</td>
+ </tr>
+ <tr>
+ <td align="right">[% LxERP.t8('Project type') %]</td>
+ <td>[% L.select_tag('defaults.project_type_id', SELF.all_project_types, default=SELF.defaults.project_type_id, title_key='description', with_empty=1, style="width: 200px") %]</td>
+ </tr>
+ <td align="right">[% LxERP.t8('Project Status') %]</td>
+ <td>[% L.select_tag('defaults.project_status_id', SELF.all_project_statuses, default=SELF.defaults.project_status_id, title_key='description', with_empty=1, style="width: 200px") %]</td>
+ </tr>
+
</table>
</div>