Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4ce9a4ca

Von Werner Hahn vor mehr als 1 Jahr hinzugefügt

  • ID 4ce9a4caea7aaa4fe52180f6ad34e240b9f18831
  • Vorgänger 13c2033f
  • Nachfolger 42021e9e

_get_snumber in S7C/ DeliveryOrder, Order und Reclamation eingebunden

Unterschiede anzeigen:

SL/Controller/Order.pm
188 188
sub action_delete {
189 189
  my ($self) = @_;
190 190

  
191
  my %params = (history => { snumbers => $self->get_history_snumbers() });
192
  SL::Model::Record->delete($self->order, %params);
191
  SL::Model::Record->delete($self->order);
193 192
  my $text = $self->type eq sales_order_type()       ? $::locale->text('The order has been deleted')
194 193
           : $self->type eq purchase_order_type()    ? $::locale->text('The order has been deleted')
195 194
           : $self->type eq sales_quotation_type()   ? $::locale->text('The quotation has been deleted')
......
2122 2121
                          delete_custom_shipto       => $self->is_custom_shipto_to_delete || $self->order->custom_shipto->is_empty,
2123 2122
                          items_to_delete            => $items_to_delete,
2124 2123
                          objects_to_close           => $objects_to_close,
2125
                          history                    => { snumbers => $self->get_history_snumbers() },
2126 2124
                          link_requirement_specs_linking_to_created_from_objects => \@converted_from_oe_ids,
2127 2125
                          set_project_in_linked_requirement_specs                => 1,
2128 2126
  );
......
2735 2733
  $self->redirect_to(%params, id => $self->order->id);
2736 2734
}
2737 2735

  
2738
sub get_history_snumbers {
2739
  my ($self) = @_;
2740

  
2741
  my $number_type = $self->order->type =~ m{order} ? 'ordnumber' : 'quonumber';
2742
  my $snumbers    = $number_type . '_' . $self->order->$number_type;
2743

  
2744
  return $snumbers;
2745
}
2746

  
2747 2736
sub save_history {
2748 2737
  my ($self, $addition) = @_;
2749 2738

  

Auch abrufbar als: Unified diff