From: G. Richardson Date: Tue, 3 Feb 2015 07:32:25 +0000 (+0100) Subject: history_erp Eintrag für Verkaufsrechnung, die storniert wird X-Git-Tag: release-3.2.0~58 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ed76c91e9b0870269fd66b3b6d13dbeb68c9c153;p=kivitendo-erp.git history_erp Eintrag für Verkaufsrechnung, die storniert wird --- diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index c44351d00..4adc9f708 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -861,6 +861,11 @@ sub storno { $form->error($locale->text('Cannot storno invoice for a closed period!')); } + # save the history of invoice being stornoed + $form->{snumbers} = qq|invnumber_| . $form->{invnumber}; + $form->{addition} = "STORNO"; + $form->save_history; + map({ my $key = $_; delete($form->{$key}) unless (grep({ $key eq $_ } qw(id login password type))); } keys(%{ $form })); invoice_links();