Revision f4fe8246
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
10 | 10 |
use SL::DB::Currency; |
11 | 11 |
use SL::DB::Default; |
12 | 12 |
use SL::DB::Language; |
13 |
use SL::DB::Part; |
|
13 | 14 |
use SL::DB::Unit; |
14 | 15 |
use SL::Helper::Flash; |
15 | 16 |
use SL::Locale::String qw(t8); |
... | ... | |
18 | 19 |
__PACKAGE__->run_before('check_auth'); |
19 | 20 |
|
20 | 21 |
use Rose::Object::MakeMethods::Generic ( |
21 |
'scalar --get_set_init' => [ qw(defaults all_warehouses all_weightunits all_languages all_currencies all_templates posting_options payment_options accounting_options inventory_options profit_options accounts balance_startdate_method_options) ], |
|
22 |
'scalar --get_set_init' => [ qw(defaults all_warehouses all_weightunits all_languages all_currencies all_templates all_parts posting_options payment_options accounting_options inventory_options profit_options accounts balance_startdate_method_options) ],
|
|
22 | 23 |
); |
23 | 24 |
|
24 | 25 |
sub action_edit { |
... | ... | |
139 | 140 |
sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted } |
140 | 141 |
sub init_all_languages { SL::DB::Manager::Language->get_all_sorted } |
141 | 142 |
sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted } |
143 |
sub init_all_parts { SL::DB::Manager::Part->get_all_sorted } |
|
142 | 144 |
sub init_all_weightunits { my $unit = SL::DB::Manager::Unit->find_by(name => 'kg'); $unit ? $unit->convertible_units : [] } |
143 | 145 |
sub init_all_templates { +{ SL::Template->available_templates } } |
144 | 146 |
|
... | ... | |
218 | 220 |
$self->render('client_config/form', title => t8('Client Configuration'), |
219 | 221 |
make_chart_title => sub { $_[0]->accno . '--' . $_[0]->description }, |
220 | 222 |
make_templates_value => sub { 'templates/' . $_[0] }, |
223 |
make_part_title => sub { $_[0]->partnumber . ' ' . $_[0]->description }, |
|
221 | 224 |
); |
222 | 225 |
} |
223 | 226 |
|
Auch abrufbar als: Unified diff
Pflichtenhefte: Standard-Artikel für Auftragswandlung in Mandantenkonfiguration eingeben können