From 6e50e0c2879d0e9b4dbb13b84a51d24388fc8d1f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 10 Apr 2007 09:58:48 +0000 Subject: [PATCH] =?utf8?q?Beim=20Umwandeln=20von=20Lieferantenauftrag=20in?= =?utf8?q?=20Kundenauftrag=20und=20umgekehrt=20die=20Auftragsnummer=20l?= =?utf8?q?=C3=B6schen,=20damit=20eine=20neue=20vergeben=20werden=20kann,?= =?utf8?q?=20ohne=20dass=20der=20Benutzer=20daf=C3=BCr=20etwas=20tun=20mus?= =?utf8?q?s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 8a38efe30..173ad770f 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -2476,6 +2476,10 @@ sub purchase_order { OE->close_order(\%myconfig, \%$form); } + if ($form->{type} =~ /^sales_/) { + delete($form->{ordnumber}); + } + $form->{cp_id} *= 1; $form->{title} = $locale->text('Add Purchase Order'); @@ -2495,6 +2499,10 @@ sub sales_order { OE->close_order(\%myconfig, $form); } + if ($form->{type} eq "purchase_order") { + delete($form->{ordnumber}); + } + $form->{cp_id} *= 1; $form->{title} = $locale->text('Add Sales Order'); -- 2.20.1