X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/07b34c6ddd71bfeca5266b9045069769c1cdb01f..5cbbffe250f165212c31f4dbfad8ca9fd7300a4a:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 4c65c0545..4abdac0f9 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -467,6 +467,25 @@ sub close_orders { my ($self, $myconfig ,$form) = @_; + for my $i (1 .. $form->{rowcount}) { + + map { + $form->{"${_}_$i"} = $form->parse_amount($myconfig, $form->{"${_}_$i"}) + } qw(qty ship); + if ($delete_oe_id) { + $form->{"orderitems_id_$i"} = ""; + } + + if ($form->{"qty_$i"}) { + + # set values to 0 if nothing entered + $form->{"discount_$i"} = + $form->parse_amount($myconfig, $form->{"discount_$i"}); + + $form->{"sellprice_$i"} = + $form->parse_amount($myconfig, $form->{"sellprice_$i"}); + } + } # get ids from $form map { push @ids, $form->{"ordnumber_$_"} if $form->{"ordnumber_$_"} } (1 .. $form->{rowcount});