Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
authorG. Richardson <information@lx-office-hosting.de>
Wed, 1 Aug 2012 10:03:07 +0000 (12:03 +0200)
committerG. Richardson <information@lx-office-hosting.de>
Wed, 1 Aug 2012 10:03:07 +0000 (12:03 +0200)
SL/Controller/CsvImport/Part.pm

index 6c056d0..3be6f2a 100644 (file)
@@ -201,7 +201,7 @@ sub check_existing {
 
   if ($self->settings->{article_number_policy} eq 'update_prices') {
     if ($entry->{part}) {
-      map { $entry->{part}->$_( $object->$_ ) } qw(sellprice listprice lastcost);
+      map { $entry->{part}->$_( $object->$_ ) if defined $object->$_ } qw(sellprice listprice lastcost);   
 
       # merge prices
       my %prices_by_pricegroup_id = map { $_->pricegroup->id => $_ } $entry->{part}->prices, $object->prices;