From: G. Richardson Date: Fri, 12 Dec 2014 11:12:42 +0000 (+0100) Subject: Löschen von Angeboten/Aufträgen protokollieren X-Git-Tag: release-3.2.0beta~189 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b36f660676ce4cdb27474563cbbf00d0fc45b396;p=kivitendo-erp.git Löschen von Angeboten/Aufträgen protokollieren Berücksichtigt jetzt auch Angebote in history_erp. --- 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);