From: Jan Büren Date: Tue, 8 Feb 2022 12:07:57 +0000 (+0100) Subject: Beistell-Lieferschein: nur diesen Typ dort anbieten X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~216^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a1ee0d462be910dc77be3e084a689d20144a3edb;p=kivitendo-erp.git Beistell-Lieferschein: nur diesen Typ dort anbieten und nicht für andere LS-Belege --- diff --git a/SL/Helper/PrintOptions.pm b/SL/Helper/PrintOptions.pm index 2b07ee707..9108a224e 100644 --- a/SL/Helper/PrintOptions.pm +++ b/SL/Helper/PrintOptions.pm @@ -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,