From: Philip Reetz
Date: Wed, 7 Dec 2005 09:46:00 +0000 (+0000)
Subject: Sammelbestellungen koennen nur aus Auftraegen generiert werden
X-Git-Tag: release-2.4.0^2~438
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=33e84bd96729a946f818885fcff8d41eaaf616e4;p=kivitendo-erp.git
Sammelbestellungen koennen nur aus Auftraegen generiert werden
---
diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl
index dbb74a9f9..b4760b284 100644
--- a/bin/mozilla/oe.pl
+++ b/bin/mozilla/oe.pl
@@ -1833,10 +1833,10 @@ sub invoice {
# close orders/quotations
$form->{closed} = 1;
- # save order iff one ordnumber has been given
+ # save order if one ordnumber has been given
# 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 '') {
+ if (($form->{ordnumber} ne '') || ($form->{quonumber} ne '')) {
OE->save(\%myconfig, \%$form);
} else {
OE->close_orders(\%myconfig, \%$form);