X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8f3f4aa62c7d3d0c80558d66da86fea15a9efe64..f087c3736d8c707c18cb3ea87692995940361057:/bin/mozilla/ir.pl diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index b9ede695e..c535bcfec 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -586,6 +586,8 @@ sub storno { # Payments must not be recorded for the new storno invoice. $form->{paidaccounts} = 0; map { my $key = $_; delete $form->{$key} if grep { $key =~ /^$_/ } qw(datepaid_ gldate_ acc_trans_id_ source_ memo_ paid_ exchangerate_ AR_paid_) } keys %{ $form }; + # set new ids for storno invoice + delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"}; # saving the history if(!exists $form->{addition} && $form->{id} ne "") { @@ -618,6 +620,7 @@ sub use_as_new { $form->{paidaccounts} = 1; $form->{rowcount}--; $form->{invdate} = $form->current_date(\%myconfig); + delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"}; &display_form; $main::lxdebug->leave_sub();