Revision 88257876
Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
21 | 21 |
|
22 | 22 |
use Rose::Object::MakeMethods::Generic ( |
23 | 23 |
'scalar --get_set_init' => [ qw(defaults all_warehouses all_weightunits all_languages all_currencies all_templates all_price_sources h_unit_name |
24 |
all_project_statuses all_project_types |
|
24 | 25 |
posting_options payment_options accounting_options inventory_options profit_options balance_startdate_method_options) ], |
25 | 26 |
); |
26 | 27 |
|
... | ... | |
143 | 144 |
sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted } |
144 | 145 |
sub init_all_languages { SL::DB::Manager::Language->get_all_sorted } |
145 | 146 |
sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted } |
147 |
sub init_all_project_types { SL::DB::Manager::ProjectType->get_all_sorted } |
|
148 |
sub init_all_project_statuses { SL::DB::Manager::ProjectStatus->get_all_sorted } |
|
146 | 149 |
sub init_all_weightunits { my $unit = SL::DB::Manager::Unit->find_by(name => 'kg'); $unit ? $unit->convertible_units : [] } |
147 | 150 |
sub init_all_templates { +{ SL::Template->available_templates } } |
148 | 151 |
sub init_h_unit_name { first { SL::DB::Manager::Unit->find_by(name => $_) } qw(Std h Stunde) }; |
templates/webpages/client_config/_features.html | ||
---|---|---|
150 | 150 |
</td> |
151 | 151 |
</tr> |
152 | 152 |
|
153 |
<tr><td class="listheading" colspan="4">[% LxERP.t8("Projects") %]</td></tr> |
|
154 |
|
|
155 |
<tr> |
|
156 |
<td align="right">[% LxERP.t8('Always save orders with a projectnumber (create new projects)') %]</td> |
|
157 |
<td>[% L.yes_no_tag('defaults.order_always_project', SELF.defaults.order_always_project) %]</td> |
|
158 |
</tr> |
|
159 |
<tr> |
|
160 |
<td align="right">[% LxERP.t8('Project type') %]</td> |
|
161 |
<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> |
|
162 |
</tr> |
|
163 |
<td align="right">[% LxERP.t8('Project Status') %]</td> |
|
164 |
<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> |
|
165 |
</tr> |
|
166 |
|
|
153 | 167 |
</table> |
154 | 168 |
</div> |
Auch abrufbar als: Unified diff
Mandantenkonfiguration für Auftragsnummern mit Projekten speichern