Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 72589ebe

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

  • ID 72589ebeb899e839f353eac75d3788be4b32ff39
  • Vorgänger 7a9df994
  • Nachfolger c4765620

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
677 677
  );
678 678
}
679 679

  
680
sub action_save_and_supplier_delivery_order {
681
  my ($self) = @_;
682

  
683
  $self->save_and_redirect_to(
684
    controller => 'controller.pl',
685
    action     => 'DeliveryOrder/add_from_order',
686
    type       => 'supplier_delivery_order',
687
  );
688
}
689

  
680 690
# save the order and redirect to the frontend subroutine for a new
681 691
# invoice
682 692
sub action_save_and_invoice {
......
2065 2075
          ],
2066 2076
          only_if   => (any { $self->type eq $_ } (sales_order_type(), purchase_order_type()))
2067 2077
        ],
2078
        action => [
2079
          t8('Save and Supplier Delivery Order'),
2080
          call      => [ 'kivi.Order.save', 'save_and_supplier_delivery_order', $::instance_conf->get_order_warn_duplicate_parts,
2081
                                                                       $::instance_conf->get_order_warn_no_deliverydate,
2082
                                                                                                                        ],
2083
          checks    => [ 'kivi.Order.check_save_active_periodic_invoices',
2084
                         @req_trans_cost_art, @req_cusordnumber,
2085
          ],
2086
          only_if   => (any { $self->type eq $_ } (sales_order_type()))
2087
        ],
2068 2088
        action => [
2069 2089
          t8('Save and Invoice'),
2070 2090
          call      => [ 'kivi.Order.save', 'save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ],

Auch abrufbar als: Unified diff