// Fixed #PSFV-664 : stock available is now correctly updated

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14192 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-03-15 10:32:00 +00:00
parent f515c631ac
commit 888335e95a
+8 -1
View File
@@ -1273,7 +1273,14 @@ class AdminImportControllerCore extends AdminController
}
// stock available
StockAvailable::setQuantity((int)$product->id, 0, $product->quantity);
if (Shop::isFeatureActive())
{
foreach ($shops as $shop)
StockAvailable::setQuantity((int)$product->id, 0, $product->quantity, (int)$shop);
}
else
StockAvailable::setQuantity((int)$product->id, 0, $product->quantity, $this->context->shop->id);
}
$this->closeCsvFile($handle);
}