Revision 2d678531
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Controller/PriceRule.pm | ||
---|---|---|
13 | 13 |
use SL::DB::PartsGroup; |
14 | 14 |
use SL::DB::Business; |
15 | 15 |
use SL::Helper::Flash; |
16 |
use SL::ClientJS; |
|
17 | 16 |
use SL::Locale::String; |
18 | 17 |
|
19 | 18 |
use Rose::Object::MakeMethods::Generic |
20 | 19 |
( |
21 |
'scalar --get_set_init' => [ qw(models price_rule vc js pricegroups partsgroups businesses) ],
|
|
20 |
'scalar --get_set_init' => [ qw(models price_rule vc pricegroups partsgroups businesses) ], |
|
22 | 21 |
); |
23 | 22 |
|
24 | 23 |
# __PACKAGE__->run_before('check_auth'); |
... | ... | |
87 | 86 |
->js |
88 | 87 |
->before('#price_rule_new_items', $html) |
89 | 88 |
->reinit_widgets |
90 |
->render($self);
|
|
89 |
->render; |
|
91 | 90 |
} |
92 | 91 |
|
93 | 92 |
sub action_price_type_help { |
... | ... | |
267 | 266 |
$::form->{filter}{type}; |
268 | 267 |
} |
269 | 268 |
|
270 |
sub init_js { |
|
271 |
SL::ClientJS->new; |
|
272 |
} |
|
273 |
|
|
274 | 269 |
sub init_businesses { |
275 | 270 |
SL::DB::Manager::Business->get_all; |
276 | 271 |
} |
Auch abrufbar als: Unified diff
PriceRule: js accessor angepasst