]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/IC.pm
Datenbank-IDs in Formularen nicht durch "format_amount" jagen, sondern 1:1 speichern.
[kivitendo-erp.git] / SL / IC.pm
index 75e3191eb83bdf53f24da2f7abb79a0c3a921f94..430f56520ac7f473ec23c9a9691338ea80889f2f 100644 (file)
--- a/SL/IC.pm
+++ b/SL/IC.pm
@@ -482,11 +482,9 @@ sub save {
       ) {
       #$klass = $form->parse_amount($myconfig, $form->{"klass_$i"});
       $price = $form->parse_amount($myconfig, $form->{"price_$i"});
-      $pricegroup_id =
-        $form->parse_amount($myconfig, $form->{"pricegroup_id_$i"});
       $query = qq|INSERT INTO prices (parts_id, pricegroup_id, price) | .
                qq|VALUES(?, ?, ?)|;
-      @values = (conv_i($form->{id}), conv_i($pricegroup_id), $price);
+      @values = (conv_i($form->{id}), conv_i($form->{"pricegroup_id_$i"}), $price);
       do_query($form, $dbh, $query, @values);
     }
   }