From a1ee0d462be910dc77be3e084a689d20144a3edb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 8 Feb 2022 13:07:57 +0100 Subject: [PATCH] Beistell-Lieferschein: nur diesen Typ dort anbieten MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit und nicht für andere LS-Belege --- SL/Helper/PrintOptions.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- 2.20.1