Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 12afac30

Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt

  • ID 12afac309627ef05362ccff12071ca3c1b95675b
  • Vorgänger 679ec1b9
  • Nachfolger 1843d27d

OrderController: Angebote schliessen, wenn Auftrag daraus erstellt

über Model::Record

Unterschiede anzeigen:

SL/Controller/Order.pm
2150 2150

  
2151 2151
  my $is_new = !$self->order->id;
2152 2152

  
2153
  my $objects_to_close = SL::DB::Manager::Order->get_all(where => [id => \@converted_from_oe_ids, quotation => 1]);
2154

  
2153 2155
  my $items_to_delete = scalar @{ $self->item_ids_to_delete || [] }
2154 2156
                      ? SL::DB::Manager::OrderItem->get_all(where => [id => $self->item_ids_to_delete])
2155 2157
                      : undef;
......
2158 2160
                          with_validity_token  => { scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE(), token => $::form->{form_validity_token} },
2159 2161
                          delete_custom_shipto => $self->is_custom_shipto_to_delete || $self->order->custom_shipto->is_empty,
2160 2162
                          items_to_delete      => $items_to_delete,
2163
                          objects_to_close     => $objects_to_close,
2161 2164
                          history              => { snumbers => $self->get_history_snumbers() },
2162 2165
                          link_requirement_specs_linking_to_created_from_objects => \@converted_from_oe_ids,
2163 2166
                          set_project_in_linked_requirement_specs                => 1,

Auch abrufbar als: Unified diff