X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/43550a3d3b924a75703d06ab297d05109c06cb37..e5d45c414dc83d1c9b25c9fc3824e02bd69b9630:/bin/mozilla/oe.pl diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index dbcc5fdf7..6c410c159 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -115,6 +115,7 @@ sub order_links { # retrieve order/quotation $form->{webdav} = $webdav; + # set jscalendar $form->{jscalendar} = $jscalendar; @@ -220,6 +221,23 @@ sub prepare_order { qw(partnumber description unit); $form->{rowcount} = $i; } + } elsif ($form->{rowcount}) { + for my $i (1 .. $form->{rowcount}) { + $form->{"discount_$i"} = + $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100); + + ($dec) = ($form->{"sellprice_$i"} =~ /\.(\d+)/); + $dec = length $dec; + $decimalplaces = ($dec > 2) ? $dec : 2; + + $form->{"sellprice_$i"} = + $form->format_amount(\%myconfig, $form->{"sellprice_$i"}, + $decimalplaces); + $form->{"qty_$i"} = $form->format_amount(\%myconfig, $form->{"qty_$i"}); + + map { $form->{"${_}_$i"} =~ s/\"/"/g } + qw(partnumber description unit); + } } $lxdebug->leave_sub(); @@ -987,6 +1005,8 @@ sub update { } } } + + $lxdebug->leave_sub(); }