Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4212925e

Von Sven Schöling vor fast 3 Jahren hinzugefügt

  • ID 4212925ee0052614e9a32fc1161112f87b98fae3
  • Vorgänger 6968f60b
  • Nachfolger 1e0fd485

Order: Workflow Beistelllieferschein erstellen

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
78 78
  );
79 79
}
80 80

  
81
sub action_add_from_order {
82
  my ($self) = @_;
83
  # this interfers with init_order
84
  $self->{converted_from_oe_id} = delete $::form->{id};
85

  
86
  # TODO copy data and remember to link them on save
87

  
88
  $self->action_add;
89
}
90

  
81 91
# edit an existing order
82 92
sub action_edit {
83 93
  my ($self) = @_;
SL/Controller/Order.pm
659 659
  );
660 660
}
661 661

  
662
sub action_save_and_supplier_delivery_order {
663
  my ($self) = @_;
664

  
665
  $self->save_and_redirect_to(
666
    controller => 'controller.pl',
667
    action     => 'DeliveryOrder/add_from_order',
668
    type       => 'supplier_delivery_order',
669
  );
670
}
671

  
662 672
# save the order and redirect to the frontend subroutine for a new
663 673
# invoice
664 674
sub action_save_and_invoice {
......
2015 2025
          ],
2016 2026
          only_if   => (any { $self->type eq $_ } (sales_order_type(), purchase_order_type()))
2017 2027
        ],
2028
        action => [
2029
          t8('Save and Supplier Delivery Order'),
2030
          call      => [ 'kivi.Order.save', 'save_and_supplier_delivery_order', $::instance_conf->get_order_warn_duplicate_parts,
2031
                                                                       $::instance_conf->get_order_warn_no_deliverydate,
2032
                                                                                                                        ],
2033
          checks    => [ 'kivi.Order.check_save_active_periodic_invoices',
2034
                         @req_trans_cost_art, @req_cusordnumber,
2035
          ],
2036
          only_if   => (any { $self->type eq $_ } (sales_order_type()))
2037
        ],
2018 2038
        action => [
2019 2039
          t8('Save and Invoice'),
2020 2040
          call      => [ 'kivi.Order.save', 'save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ],

Auch abrufbar als: Unified diff