From 609065d23ee1ba529ba0ebfb5a2146b79775e9ea Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 22 Jun 2007 10:24:58 +0000 Subject: [PATCH] =?utf8?q?Wenn=20ein=20Auftrag=20noch=20nicht=20gespeicher?= =?utf8?q?t=20wurde,=20dann=20ergibt=20es=20auch=20keinen=20Sinn,=20Workfl?= =?utf8?q?ow-Buttons=20daf=C3=BCr=20anzuzeigen.=20Zus=C3=A4tzlich=20sicher?= =?utf8?q?stellen,=20dass=20OE->close=5Forders()=20nur=20aufgerufen=20wird?= =?utf8?q?,=20wenn=20wir=20tats=C3=A4chlich=20einen=20gespeicherten=20Bele?= =?utf8?q?g=20haben.=20Fix=20f=C3=BCr=20Bug=20700.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 0388aa032..39b995840 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1156,14 +1156,6 @@ sub form_footer { . $locale->text('Order') . qq|"> |; } - } elsif ($form->{type} =~ /sales_order$/ && $form->{rowcount} && !$form->{proforma}) { - print qq| -
Workflow $form->{heading}
- - -|; } $form->hide_form("saved_xyznumber"); @@ -2195,7 +2187,7 @@ sub invoice { # if not it's most likely a collective order, which can't be saved back # so they just have to be closed if (($form->{ordnumber} ne '') || ($form->{quonumber} ne '')) { - OE->close_order(\%myconfig, \%$form); + OE->close_order(\%myconfig, \%$form) if ($form->{id}); } else { OE->close_orders(\%myconfig, \%$form); } -- 2.20.1