DeliveryOrder: Beistelllieferschein im Einkauf
authorSven Schöling <s.schoeling@googlemail.com>
Sun, 21 Nov 2021 22:50:19 +0000 (23:50 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 14:02:19 +0000 (15:02 +0100)
SL/Controller/Order.pm

index 524d904..d605f66 100644 (file)
@@ -2083,7 +2083,7 @@ sub setup_edit_action_bar {
           checks    => [ 'kivi.Order.check_save_active_periodic_invoices',
                          @req_trans_cost_art, @req_cusordnumber,
           ],
-          only_if   => (any { $self->type eq $_ } (sales_order_type()))
+          only_if   => (any { $self->type eq $_ } (purchase_order_type()))
         ],
         action => [
           t8('Save and Invoice'),