X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/408a65ca75b941501bc630b144288dd466676248..3740b5032e01a83f12912887e66d0824c47aebcc:/bin/mozilla/ir.pl diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 39b4b88a1..9dd0076c5 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -1017,6 +1017,10 @@ sub storno { invoice_links(); prepare_invoice(); relink_accounts(); + + # Payments must not be recorded for the new storno invoice. + $form->{paidaccounts} = 0; + map { my $key = $_; delete $form->{$key} if grep { $key =~ /^$_/ } qw(datepaid_ source_ memo_ paid_ exchangerate_ AR_paid_) } keys %{ $form }; # saving the history if(!exists $form->{addition} && $form->{id} ne "") {