Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e7e6c240

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

  • ID e7e6c240cdcf19c8903eedf45294f7a399635ac8
  • Vorgänger 6802a9e9
  • Nachfolger 8458b012

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
634 634
  );
635 635
}
636 636

  
637
sub action_save_and_supplier_delivery_order {
638
  my ($self) = @_;
639

  
640
  $self->save_and_redirect_to(
641
    controller => 'controller.pl',
642
    action     => 'DeliveryOrder/add_from_order',
643
    type       => 'supplier_delivery_order',
644
  );
645
}
646

  
637 647
# save the order and redirect to the frontend subroutine for a new
638 648
# invoice
639 649
sub action_save_and_invoice {
......
1954 1964
          ],
1955 1965
          only_if   => (any { $self->type eq $_ } (sales_order_type(), purchase_order_type()))
1956 1966
        ],
1967
        action => [
1968
          t8('Save and Supplier Delivery Order'),
1969
          call      => [ 'kivi.Order.save', 'save_and_supplier_delivery_order', $::instance_conf->get_order_warn_duplicate_parts,
1970
                                                                       $::instance_conf->get_order_warn_no_deliverydate,
1971
                                                                                                                        ],
1972
          checks    => [ 'kivi.Order.check_save_active_periodic_invoices',
1973
                         @req_trans_cost_art, @req_cusordnumber,
1974
          ],
1975
          only_if   => (any { $self->type eq $_ } (sales_order_type()))
1976
        ],
1957 1977
        action => [
1958 1978
          t8('Save and Invoice'),
1959 1979
          call      => [ 'kivi.Order.save', 'save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ],

Auch abrufbar als: Unified diff