// 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:
bMancone
2012-01-02 17:41:57 +00:00
parent 8fa12fda5b
commit e20374e6f7
10 changed files with 123 additions and 108 deletions
+4 -2
View File
@@ -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)
{