Revision 2b2a37fd
Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
163 | 163 |
sub action_save_and_purchase_order { |
164 | 164 |
my ($self) = @_; |
165 | 165 |
|
166 |
delete $::form->{previousform}; |
|
166 |
my $session_value; |
|
167 |
if (1 == scalar @{$self->part->makemodels}) { |
|
168 |
my $prepared_form = Form->new(''); |
|
169 |
$prepared_form->{vendor_id} = $self->part->makemodels->[0]->make; |
|
170 |
$session_value = $::auth->save_form_in_session(form => $prepared_form); |
|
171 |
} |
|
172 |
|
|
167 | 173 |
$::form->{callback} = $self->url_for( |
168 | 174 |
controller => 'Order', |
169 | 175 |
action => 'return_from_create_part', |
170 | 176 |
type => 'purchase_order', |
177 |
previousform => $session_value, |
|
171 | 178 |
); |
172 | 179 |
|
173 | 180 |
$self->_run_action('save'); |
Auch abrufbar als: Unified diff
Artikel-Controller: Workflow zu Lieferantenauftrag: Lieferant vorauswählen, …
… wenn es genau einen Lieferanten beim Artikel gibt.