// 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:
@@ -1273,7 +1273,14 @@ class AdminImportControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// stock available
|
// 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);
|
$this->closeCsvFile($handle);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user