X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/273b5e046f1dab732ece657a756ada58d7669b9d..02022dc2c7dca5f12d37feb3c4edbb1c7b7dad36:/bin/mozilla/io.pl diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 5af1b8817..5a17d680a 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -760,7 +760,7 @@ sub remove_emptied_rows { sellprice_pg pricegroup_old price_old price_new unit_old ordnumber donumber transdate longdescription basefactor marge_total marge_percent marge_price_factor lastcost price_factor_id partnotes - stock_out stock_in has_sernumber reqdate); + stock_out stock_in has_sernumber reqdate orderitems_id); my $ic_cvar_configs = CVar->get_configs(module => 'IC'); push @flds, map { "ic_cvar_$_->{name}" } @{ $ic_cvar_configs }; @@ -917,6 +917,11 @@ sub quotation { _check_io_auth(); + # we are coming from *_order and convert to quotation + # it seems that quotation is only called if we have a existing order + if ($form->{type} =~ /(sales|purchase)_order/) { + delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"}; + } if ($form->{second_run}) { $form->{print_and_post} = 0; }