Revision 744418ae
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
133 | 133 |
# initializers |
134 | 134 |
# |
135 | 135 |
|
136 |
sub init_defaults { SL::DB::Default->get } |
|
137 |
sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted } |
|
138 |
sub init_all_languages { SL::DB::Manager::Language->get_all_sorted } |
|
139 |
sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted } |
|
136 |
sub init_defaults { SL::DB::Default->get }
|
|
137 |
sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted }
|
|
138 |
sub init_all_languages { SL::DB::Manager::Language->get_all_sorted }
|
|
139 |
sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted }
|
|
140 | 140 |
sub init_all_weightunits { my $unit = SL::DB::Manager::Unit->find_by(name => 'g'); $unit ? $unit->convertible_units : [] } |
141 |
sub init_all_templates { +{ SL::Template->available_templates } } |
|
141 |
sub init_all_templates { +{ SL::Template->available_templates } }
|
|
142 | 142 |
|
143 | 143 |
sub init_posting_options { |
144 | 144 |
[ { title => t8("never"), value => 0 }, |
Auch abrufbar als: Unified diff
Kosmetik: Alignment