From b36f660676ce4cdb27474563cbbf00d0fc45b396 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Fri, 12 Dec 2014 12:12:42 +0100 Subject: [PATCH] =?utf8?q?L=C3=B6schen=20von=20Angeboten/Auftr=C3=A4gen=20?= =?utf8?q?protokollieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Berücksichtigt jetzt auch Angebote in history_erp. --- bin/mozilla/oe.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 50e6b35f3..e3de08585 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1344,9 +1344,14 @@ sub delete { if (OE->delete(\%myconfig, \%$form)){ # saving the history if(!exists $form->{addition}) { - $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber}; - $form->{addition} = "DELETED"; - $form->save_history; + if ( $form->{formname} eq 'sales_quotation' or $form->{formname} eq 'request_quotation' ) { + $form->{snumbers} = qq|quonumber_| . $form->{quonumber}; + } elsif ( $form->{formname} eq 'sales_order' or $form->{formname} eq 'purchase_order') { + $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber}; + }; + $form->{what_done} = $form->{formname}; + $form->{addition} = "DELETED"; + $form->save_history; } # /saving the history $form->info($msg); -- 2.20.1