Fix code comment

This commit is contained in:
Laurent Destailleur 2018-10-15 13:26:18 +02:00
parent f59dba66e7
commit 6ab037c766

View File

@ -4005,7 +4005,7 @@ class Product extends CommonObject
* 'warehouseclosed' = Load stock from closed warehouses only, * 'warehouseclosed' = Load stock from closed warehouses only,
* 'warehouseinternal' = Load stock from warehouses for internal correction/transfer only * 'warehouseinternal' = Load stock from warehouses for internal correction/transfer only
* @return int < 0 if KO, > 0 if OK * @return int < 0 if KO, > 0 if OK
* @see load_virtual_stock, getBatchInfo * @see load_virtual_stock(), loadBatchInfo()
*/ */
function load_stock($option='') function load_stock($option='')
{ {
@ -4080,7 +4080,7 @@ class Product extends CommonObject
* This function need a lot of load. If you use it on list, use a cache to execute it one for each product id. * This function need a lot of load. If you use it on list, use a cache to execute it one for each product id.
* *
* @return int < 0 if KO, > 0 if OK * @return int < 0 if KO, > 0 if OK
* @see load_stock, getBatchInfo * @see load_stock(), loadBatchInfo()
*/ */
function load_virtual_stock() function load_virtual_stock()
{ {
@ -4146,6 +4146,7 @@ class Product extends CommonObject
$reshook=$hookmanager->executeHooks('loadvirtualstock', $parameters, $this, $action); $reshook=$hookmanager->executeHooks('loadvirtualstock', $parameters, $this, $action);
if ($reshook > 0) $this->stock_theorique = $hookmanager->resArray['stock_theorique']; if ($reshook > 0) $this->stock_theorique = $hookmanager->resArray['stock_theorique'];
return 1;
} }
@ -4154,7 +4155,7 @@ class Product extends CommonObject
* *
* @param string $batch Lot/serial number * @param string $batch Lot/serial number
* @return array Array with record into product_batch * @return array Array with record into product_batch
* @see load_stock, load_virtual_stock * @see load_stock(), load_virtual_stock()
*/ */
function loadBatchInfo($batch) function loadBatchInfo($batch)
{ {