From 806a4de799c8b69838c4767539279298a42fcf57 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Thu, 20 Jan 2011 11:56:59 +0100 Subject: [PATCH] =?utf8?q?Preisgruppen:=20Bernds=20parse=5Famount=20wieder?= =?utf8?q?=20eingef=C3=BChrt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IS.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.20.1