Revision 6c86511b
Von Werner Hahn vor mehr als 1 Jahr hinzugefügt
SL/Controller/DispositionManager.pm | ||
---|---|---|
160 | 160 |
SL::DB::Manager::PurchaseBasketItem->delete_all( where => [ id => \@{ $::form->{ids} }]) if ($::form->{ids} && scalar @{ $::form->{ids}}); |
161 | 161 |
return 1; |
162 | 162 |
}) || die "error: " . $order->db->error; |
163 |
$self->redirect_to(controller => "oe.pl", action => 'edit', type => 'purchase_order', vc => 'vendor', id => $order->id); |
|
163 |
|
|
164 |
my $user_prefs_doc = SL::Helper::UserPreferences->new( |
|
165 |
namespace => 'DefaultOrderController', |
|
166 |
); |
|
167 |
my $doc_val = $::instance_conf->get_feature_experimental_order ? 'new' : 'old'; |
|
168 |
$doc_val = $user_prefs_doc->get('default_order_controller') if ($user_prefs_doc); |
|
169 |
if ( $doc_val eq 'old') { |
|
170 |
$self->redirect_to( |
|
171 |
controller => 'oe.pl', |
|
172 |
action => 'edit', |
|
173 |
type => 'purchase_order', |
|
174 |
vc => 'vendor', |
|
175 |
id => $order->id, |
|
176 |
); |
|
177 |
} else { |
|
178 |
$self->redirect_to( |
|
179 |
controller => 'Order', |
|
180 |
action => 'edit', |
|
181 |
type => 'purchase_order', |
|
182 |
vc => 'vendor', |
|
183 |
id => $order->id, |
|
184 |
); |
|
185 |
} |
|
164 | 186 |
} |
165 | 187 |
|
166 | 188 |
sub _get_parts { |
Auch abrufbar als: Unified diff
HMO: Auswahl der Bearbeitungsmaske (alte Maske/ Schnellerfassung) auch
beim Dispositionsmanager.