From: Sven Schöling Date: Wed, 28 Oct 2009 16:03:01 +0000 (+0100) Subject: Kosmetik X-Git-Tag: release-2.6.1beta1~146 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=59f7af73667e284d8ee23ff78ba9433185bab7c6;p=kivitendo-erp.git Kosmetik --- diff --git a/SL/IS.pm b/SL/IS.pm index 29e64c862..e17efc6e6 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1976,12 +1976,10 @@ sub get_pricegroups_for_parts { $id = $form->{"id_$i"}; if (!($form->{"id_$i"}) and $form->{"new_id_$i"}) { - $id = $form->{"new_id_$i"}; } - my ($price, $selectedpricegroup_id) = split(/--/, - $form->{"sellprice_pg_$i"}); + my ($price, $selectedpricegroup_id) = split(/--/, $form->{"sellprice_pg_$i"}); my $pricegroup_old = $form->{"pricegroup_old_$i"}; $form->{"new_pricegroup_$i"} = $selectedpricegroup_id; @@ -2054,14 +2052,11 @@ sub get_pricegroups_for_parts { # if there is an exchange rate change price if (($form->{exchangerate} * 1) != 0) { - $pkr->{price} /= $form->{exchangerate}; } $pkr->{price} *= $form->{"basefactor_$i"}; - $pkr->{price} *= $basefactor; - $pkr->{price} = $form->format_amount($myconfig, $pkr->{price}, 5); if ($selectedpricegroup_id eq undef) {