Revision 17caaf2d
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
2085 | 2085 |
); |
2086 | 2086 |
} |
2087 | 2087 |
|
2088 |
my $objects_to_close = SL::DB::Manager::Order->get_all(where => [id => \@converted_from_oe_ids, quotation => 1]); |
|
2089 |
|
|
2088 | 2090 |
my $items_to_delete = scalar @{ $self->item_ids_to_delete || [] } |
2089 | 2091 |
? SL::DB::Manager::OrderItem->get_all(where => [id => $self->item_ids_to_delete]) |
2090 | 2092 |
: undef; |
... | ... | |
2093 | 2095 |
with_validity_token => { scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE(), token => $::form->{form_validity_token} }, |
2094 | 2096 |
delete_custom_shipto => $self->is_custom_shipto_to_delete || $self->order->custom_shipto->is_empty, |
2095 | 2097 |
items_to_delete => $items_to_delete, |
2098 |
objects_to_close => $objects_to_close, |
|
2096 | 2099 |
history => { snumbers => $self->get_history_snumbers() }, |
2097 | 2100 |
link_requirement_specs_linking_to_created_from_objects => \@converted_from_oe_ids, |
2098 | 2101 |
set_project_in_linked_requirement_specs => 1, |
Auch abrufbar als: Unified diff
OrderController: Angebote schliessen, wenn Auftrag daraus erstellt
über Model::Record