From e31590f5a1da3970eec81d55888858cfe373890c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 23 Sep 2015 15:07:49 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20Zahlungsbedingungen=20nac?= =?utf8?q?h=20flatten=5Fto=5Fform=20zur=C3=BCcksetzen,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … wenn sie in der Maske nicht gesetzt wurden. --- SL/Controller/Order.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 8c3ca5427..b6b87a87f 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -532,6 +532,8 @@ sub _create_pdf { $print_form->{media} = $params->{media} || 'file'; $order->flatten_to_form($print_form, format_amounts => 1); + # flatten_to_form sets payment_terms from customer/vendor - we do not want that here + delete $print_form->{payment_terms} if !$print_form->{payment_id}; my @errors = (); $print_form->throw_on_error(sub { -- 2.20.1