Revision 72589ebe
Von Sven Schöling vor fast 3 Jahren hinzugefügt
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
Order: Workflow Beistelllieferschein erstellen