Ticket #3 - 2478 Preis bei Erzeugnissen
authorG. Richardson <information@kivitendo-premium.de>
Sat, 28 Feb 2015 15:03:00 +0000 (16:03 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Sat, 28 Feb 2015 15:08:51 +0000 (16:08 +0100)
Doppeltes Parsen von sellprice beim Erneuern von Erzeugnissen
verhindern.

bin/mozilla/io.pl

index a2facb5..3028324 100644 (file)
@@ -555,7 +555,10 @@ sub item_selected {
   my $new_item = $form->{item_list}->[0] || croak "No item found for mode '${mode}' and ID '${id}'";
 
   # if there was a price entered, override it
-  my $sellprice = $form->parse_amount(\%myconfig, $form->{"sellprice_$i"});
+  my $sellprice;
+  unless ( $mode eq 'IC' ) {
+    $sellprice = $form->parse_amount(\%myconfig, $form->{"sellprice_$i"});
+  };
 
   my @new_fields =
     qw(id partnumber description sellprice listprice inventory_accno