Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 912e5eff

Von Tamino Steinert vor etwa 2 Jahren hinzugefügt

  • ID 912e5eff74cec728927cdc406019d3b49142c7c0
  • Vorgänger 13193b1a
  • Nachfolger 04a3aebf

Reclamation: [FIX] Workflow von nicht gespeicherter Reklamation

Unterschiede anzeigen:

SL/Controller/Reclamation.pm
580 580

  
581 581
  my $to_type = $self->reclamation->is_sales ? 'sales_order'
582 582
                                             : 'purchase_order';
583
  $self->save_and_redirect_to(
583

  
584
  $self->save_with_render_error();
585
  flash_later('info', t8('The reclamation has been saved'));
586
  $self->redirect_to(
584 587
    controller => 'Order',
585 588
    action     => 'add_from_reclamation',
586 589
    type       => $to_type,
......
606 609

  
607 610
  my $to_type = $self->reclamation->is_sales ? 'rma_delivery_order'
608 611
                                             : 'supplier_delivery_order';
609
  $self->save_and_redirect_to(
612
  $self->save_with_render_error();
613
  flash_later('info', t8('The reclamation has been saved'));
614
  $self->redirect_to(
610 615
    controller => 'controller.pl',
611 616
    action     => 'DeliveryOrder/add_from_reclamation',
612 617
    type       => $to_type,
......
627 632
    return $self->js->render();
628 633
  }
629 634

  
630
  $self->save_and_redirect_to(
635
  $self->save_with_render_error();
636
  flash_later('info', t8('The reclamation has been saved'));
637
  $self->redirect_to(
631 638
    controller => 'is.pl',
632 639
    action     => 'credit_note_from_reclamation',
633 640
    from_id    => $self->reclamation->id,
......
2483 2490
  'purchase_reclamation';
2484 2491
}
2485 2492

  
2486
sub save_and_redirect_to {
2487
  my ($self, %params) = @_;
2488

  
2489
  $self->save_with_render_error();
2490

  
2491
  flash_later('info', t8('The reclamation has been saved'));
2492

  
2493
  $self->redirect_to(%params);
2494
}
2495

  
2496 2493
sub save_history {
2497 2494
  my ($self, $addition) = @_;
2498 2495

  

Auch abrufbar als: Unified diff