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