fix #2073
authorWulf <wulf@coulmann.de>
Wed, 7 Nov 2012 15:47:07 +0000 (16:47 +0100)
committerWulf <wulf@coulmann.de>
Wed, 7 Nov 2012 15:50:11 +0000 (16:50 +0100)
SL/IS.pm

index db18d5a..9b17669 100644 (file)
--- a/SL/IS.pm
+++ b/SL/IS.pm
@@ -2130,14 +2130,12 @@ sub get_pricegroups_for_parts {
 
           $pkr->{selected}  = ' selected'; # unless $form->{selected};
           # no customer pricesgroup set
-          if ($pkr->{price_unfmt} == $pkr->{default_sellprice}) {
+          if ($pkr->{price_unfmt} == $pkr->{default_sellprice} || $form->{'sellprice_'.$i} * 1 > 1) {
 
             $pkr->{price} = $form->{"sellprice_$i"};
 
           } else {
 
-# this sub should not set anything and only return. --sschoeling, 20090506
-# is this correct? put in again... -- grichardson 20110119
             $form->{"sellprice_$i"} = $pkr->{price};
           }