// Updating Stock interface for using arrays of warehouses id when getting product quantities
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9167 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -62,21 +62,22 @@ interface StockManagerInterface
|
|||||||
* @param Warehouse $warehouse
|
* @param Warehouse $warehouse
|
||||||
* @param int $quantity
|
* @param int $quantity
|
||||||
* @param int $id_stock_mouvement_reason
|
* @param int $id_stock_mouvement_reason
|
||||||
|
* @param bool $is_usable
|
||||||
* @param int $id_order Optionnal
|
* @param int $id_order Optionnal
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function removeProduct($id_product, $id_product_attribute, $warehouse, $quantity, $id_stock_mouvement_reason, $id_order = null);
|
public function removeProduct($id_product, $id_product_attribute, $warehouse, $quantity, $id_stock_mouvement_reason, $is_usable, $id_order = null);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For a given product, returns its physical quantity
|
* For a given product, returns its physical quantity
|
||||||
*
|
*
|
||||||
* @param int $id_product
|
* @param int $id_product
|
||||||
* @param int $id_product_attribute
|
* @param int $id_product_attribute
|
||||||
* @param Warehouse $warehouse Optional
|
* @param array $warehouses_id Optional
|
||||||
* @param bool $usable false default - in this case we retrieve all physical quantities, otherwise we retrieve physical quantities flagged as usable
|
* @param bool $usable false default - in this case we retrieve all physical quantities, otherwise we retrieve physical quantities flagged as usable
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getProductPhysicalQuantities($id_product, $id_product_attribute, $warehouse = null, $usable = false);
|
public function getProductPhysicalQuantities($id_product, $id_product_attribute, $warehouses_id = null, $usable = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For a given product, returns its real quantity
|
* For a given product, returns its real quantity
|
||||||
@@ -86,10 +87,10 @@ interface StockManagerInterface
|
|||||||
* @param int $id_product
|
* @param int $id_product
|
||||||
* @param int $id_product_attribute
|
* @param int $id_product_attribute
|
||||||
* @param bool $usable false by default
|
* @param bool $usable false by default
|
||||||
* @param Warehouse $warehouse Optional
|
* @param array $warehouses_id Optional
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getProductRealQuantities($id_product, $id_product_attribute, $warehouse = null, $usable = false);
|
public function getProductRealQuantities($id_product, $id_product_attribute, $warehouses_id = null, $usable = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For a given product, transfers quantities between two warehouses
|
* For a given product, transfers quantities between two warehouses
|
||||||
|
|||||||
Reference in New Issue
Block a user