Revision fa415e21
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Controller/Inventory.pm | ||
---|---|---|
11 | 11 |
use SL::DB::Unit; |
12 | 12 |
use SL::WH; |
13 | 13 |
use SL::Locale::String qw(t8); |
14 |
use SL::ClientJS; |
|
15 | 14 |
use SL::Presenter; |
16 | 15 |
use SL::DBUtils; |
17 | 16 |
use SL::Helper::Flash; |
18 | 17 |
|
19 | 18 |
use Rose::Object::MakeMethods::Generic ( |
20 |
'scalar --get_set_init' => [ qw(warehouses units js p) ],
|
|
19 |
'scalar --get_set_init' => [ qw(warehouses units p) ], |
|
21 | 20 |
'scalar' => [ qw(warehouse bin unit part) ], |
22 | 21 |
); |
23 | 22 |
|
... | ... | |
100 | 99 |
->replaceWith('#bin_id', $self->build_bin_select) |
101 | 100 |
->replaceWith('#unit_id', $self->build_unit_select) |
102 | 101 |
->focus('#warehouse_id') |
103 |
->render($self);
|
|
102 |
->render; |
|
104 | 103 |
} |
105 | 104 |
|
106 | 105 |
sub action_warehouse_changed { |
... | ... | |
109 | 108 |
$self->js |
110 | 109 |
->replaceWith('#bin_id', $self->build_bin_select) |
111 | 110 |
->focus('#bin_id') |
112 |
->render($self);
|
|
111 |
->render; |
|
113 | 112 |
} |
114 | 113 |
|
115 | 114 |
sub action_mini_stock { |
... | ... | |
117 | 116 |
|
118 | 117 |
$self->js |
119 | 118 |
->html('#stock', $self->render('inventory/_stock', { output => 0 })) |
120 |
->render($self);
|
|
119 |
->render; |
|
121 | 120 |
} |
122 | 121 |
|
123 | 122 |
#================================================================ |
... | ... | |
138 | 137 |
SL::DB::Manager::Unit->get_all; |
139 | 138 |
} |
140 | 139 |
|
141 |
sub init_js { |
|
142 |
SL::ClientJS->new; |
|
143 |
} |
|
144 |
|
|
145 | 140 |
sub init_p { |
146 | 141 |
SL::Presenter->get; |
147 | 142 |
} |
Auch abrufbar als: Unified diff
Inventory: js accessor angepasst