Preisgruppen: Bernds parse_amount wieder eingeführt
authorG. Richardson <information@lx-office-hosting.de>
Thu, 20 Jan 2011 10:56:59 +0000 (11:56 +0100)
committerG. Richardson <information@lx-office-hosting.de>
Thu, 20 Jan 2011 11:07:43 +0000 (12:07 +0100)
SL/IS.pm

index 666d8bc..918ca19 100644 (file)
--- 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) {