Update product.class.php

This commit is contained in:
Laurent Destailleur
2018-10-14 16:47:30 +02:00
committed by GitHub
parent 5654492ba8
commit 7e68d8df1b

View File

@@ -4144,7 +4144,7 @@ class Product extends CommonObject
$parameters=array('id'=>$this->id);
// Note that $action and $object may have been modified by some hooks
$reshook=$hookmanager->executeHooks('loadvirtualstock', $parameters, $this, $action);
if ($reshook > 0) $this->stock_theorique+= $hookmanager->resPrint;
if ($reshook > 0) $this->stock_theorique = $hookmanager->resArray['stock_theorique'];
}