From: G. Richardson Date: Thu, 20 Jan 2011 10:56:59 +0000 (+0100) Subject: Preisgruppen: Bernds parse_amount wieder eingeführt X-Git-Tag: release-2.6.2beta2~2^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=806a4de799c8b69838c4767539279298a42fcf57;p=kivitendo-erp.git Preisgruppen: Bernds parse_amount wieder eingeführt --- diff --git a/SL/IS.pm b/SL/IS.pm index 666d8bc04..918ca1909 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -2125,7 +2125,9 @@ sub get_pricegroups_for_parts { if ($pkr->{pricegroup_id} eq $selectedpricegroup_id) { $pkr->{selected} = ' selected'; } - } elsif (($price_new != $form->{"sellprice_$i"}) and ($price_new ne 0) and defined $price_new) { + } elsif ( ($form->parse_amount($myconfig, $price_new) + != $form->parse_amount($myconfig, $form->{"sellprice_$i"})) + and ($price_new ne 0) and defined $price_new) { # sellprice has changed # when loading existing invoices $price_new is NULL if ($pkr->{pricegroup_id} == 0) {