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

This commit is contained in:
bMancone
2012-03-15 10:32:00 +00:00
parent d2c1810967
commit e9c1dff99c
+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);
}