Beistell-Lieferschein: nur diesen Typ dort anbieten
authorJan Büren <jan@kivitendo.de>
Tue, 8 Feb 2022 12:07:57 +0000 (13:07 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 14:05:34 +0000 (15:05 +0100)
und nicht für andere LS-Belege

SL/Helper/PrintOptions.pm

index 2b07ee7..9108a22 100644 (file)
@@ -75,7 +75,10 @@ sub get_print_options {
     ($form->{type} eq 'final_invoice') ? (
       opthash("final_invoice", $form->{PD}{final_invoice},             $locale->text('Final Invoice')),
     ) : undef,
-    ($form->{type} =~ /_delivery_order$/) ? (
+    ($form->{type} =~ /^supplier_delivery_order$/) ? (
+      opthash('supplier_delivery_order', $form->{PD}{supplier_delivery_order},  $locale->text('Supplier Delivery Order')),
+    ) : undef,
+    ($form->{type} =~ /(sales|purchase)_delivery_order$/) ? (
       opthash($form->{type},         $form->{PD}{$form->{type}},       $locale->text('Delivery Order')),
       opthash('pick_list',           $form->{PD}{pick_list},           $locale->text('Pick List')),
     ) : undef,