// Updating Stock interface for using Warehouses objects
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9150 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -44,7 +44,7 @@ interface StockManagerInterface
|
|||||||
*
|
*
|
||||||
* @param int $id_product
|
* @param int $id_product
|
||||||
* @param int id_product_attribute
|
* @param int id_product_attribute
|
||||||
* @param int $id_warehouse
|
* @param Warehouse $warehouse
|
||||||
* @param int $quantity
|
* @param int $quantity
|
||||||
* @param int $id_stock_mouvement_reason
|
* @param int $id_stock_mouvement_reason
|
||||||
* @param float $price_te
|
* @param float $price_te
|
||||||
@@ -52,31 +52,31 @@ interface StockManagerInterface
|
|||||||
* @param int $id_supplier_order Optionnal
|
* @param int $id_supplier_order Optionnal
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function addProduct($id_product, $id_product_attribute, $id_warehouse, $quantity, $id_stock_mouvement_reason, $price_te, $is_usable, $id_supplier_order = null);
|
public function addProduct($id_product, $id_product_attribute, $warehouse, $quantity, $id_stock_mouvement_reason, $price_te, $is_usable, $id_supplier_order = null);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For a given product, removes a given quantity
|
* For a given product, removes a given quantity
|
||||||
*
|
*
|
||||||
* @param int $id_product
|
* @param int $id_product
|
||||||
* @param int id_product_attribute
|
* @param int id_product_attribute
|
||||||
* @param int $id_warehouse
|
* @param Warehouse $warehouse
|
||||||
* @param int $quantity
|
* @param int $quantity
|
||||||
* @param int $id_stock_mouvement_reason
|
* @param int $id_stock_mouvement_reason
|
||||||
* @param int $id_order Optionnal
|
* @param int $id_order Optionnal
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function removeProduct($id_product, $id_product_attribute, $id_warehouse, $quantity, $id_stock_mouvement_reason, $id_order = null);
|
public function removeProduct($id_product, $id_product_attribute, $warehouse, $quantity, $id_stock_mouvement_reason, $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 int $id_warehouse Optionnal
|
* @param Warehouse $warehouse 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, $id_warehouse = null, $usable = false);
|
public function getProductPhysicalQuantities($id_product, $id_product_attribute, $warehouse = null, $usable = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For a given product, returns its real quantity
|
* For a given product, returns its real quantity
|
||||||
@@ -86,10 +86,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 int $id_warehouse Optionnal
|
* @param Warehouse $warehouse Optional
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getProductRealQuantities($id_product, $id_product_attribute, $id_warehouse = null, $usable = false);
|
public function getProductRealQuantities($id_product, $id_product_attribute, $warehouse = null, $usable = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For a given product, transfers quantities between two warehouses
|
* For a given product, transfers quantities between two warehouses
|
||||||
@@ -100,12 +100,12 @@ interface StockManagerInterface
|
|||||||
* @param int $id_product
|
* @param int $id_product
|
||||||
* @param int $id_product_attribute
|
* @param int $id_product_attribute
|
||||||
* @param int $quantity
|
* @param int $quantity
|
||||||
* @param int $id_warehouse_from
|
* @param Warehouse $warehouse_from
|
||||||
* @param int $id_warehouse_to
|
* @param Warehouse $warehouse_to
|
||||||
* @param bool $usable_from true by default
|
* @param bool $usable_from true by default
|
||||||
* @param bool $usable_to true by default
|
* @param bool $usable_to true by default
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function transferBetweenWarehouses($id_product, $id_product_attribute, $quantity, $id_warehouse_from, $id_warehouse_to, $usable_from = true, $usable_to = true);
|
public function transferBetweenWarehouses($id_product, $id_product_attribute, $quantity, $warehouse_from, $warehouse_to, $usable_from = true, $usable_to = true);
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user