]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Rabatt wurde fehlerhaft uebernommen beim Umwandeln von Angebot in Auftrag. Fixes...
authorPhilip Reetz <p.reetz@linet-services.de>
Wed, 25 Jan 2006 07:28:03 +0000 (07:28 +0000)
committerPhilip Reetz <p.reetz@linet-services.de>
Wed, 25 Jan 2006 07:28:03 +0000 (07:28 +0000)
bin/mozilla/oe.pl

index e05d0130a1f0cc994da8e24a867047167241df2e..b16352fd6f66f74345c2c6fad4c8d61a888c7d8d 100644 (file)
@@ -231,9 +231,10 @@ sub prepare_order {
     }
     
     for my $i (1 .. $form->{rowcount}) {
-       $form->{"discount_$i"} =
-        $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100);
-
+      if ($form->{id}) {
+        $form->{"discount_$i"} =
+          $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100);
+      }
       ($dec) = ($form->{"sellprice_$i"} =~ /\.(\d+)/);    
       $dec           = length $dec;
       $decimalplaces = ($dec > 2) ? $dec : 2;