// updated stock classes
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12022 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -607,7 +607,7 @@ class StockManagerCore implements StockManagerInterface
|
||||
* @param float $price_te
|
||||
* @return int WA
|
||||
*/
|
||||
protected function calculateWA($stock, $quantity, $price_te)
|
||||
protected function calculateWA(Stock $stock, $quantity, $price_te)
|
||||
{
|
||||
return (float)Tools::ps_round(((($stock->physical_quantity * $stock->price_te) + ($quantity * $price_te)) / ($stock->physical_quantity + $quantity)), 6);
|
||||
}
|
||||
@@ -617,7 +617,9 @@ class StockManagerCore implements StockManagerInterface
|
||||
*
|
||||
* @param int $id_product
|
||||
* @param int $id_product_attribute
|
||||
* @return Collection
|
||||
* @param int $id_warehouse Optional
|
||||
* @param int $price_te Optional
|
||||
* @return Collection of Stock
|
||||
*/
|
||||
protected function getStockCollection($id_product, $id_product_attribute, $id_warehouse = null, $price_te = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user