From 2bc376b9be6507cc0fdf3ddca0ed410566cf3ba4 Mon Sep 17 00:00:00 2001 From: Martin Helmling Date: Tue, 7 Jan 2014 11:18:28 +0100 Subject: [PATCH] Bei Angebot / Auftrag / Lieferschein (Ein- und Verkauf) wird beim Drucken-Knopf der Beleg aktualisiert. Bug 2047 beheben --- bin/mozilla/io.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 56a0354ef..0ba19916f 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1196,12 +1196,17 @@ sub print { } $form->{print_and_save} = 1; my $formname = $form->{formname}; - &save(); + save(); $form->{formname} = $formname; - &edit(); + edit(); $::lxdebug->leave_sub(); ::end_of_request(); } + elsif (($form->{type} =~ /_order$/) || ($form->{type} =~ /_quotation$/)) { + $form->{print_and_save} = 1; + save(); + } + &print_form($old_form); -- 2.20.1