Fix: Missing include

This commit is contained in:
Laurent Destailleur 2010-05-17 00:20:03 +00:00
parent 0f7fba3f29
commit e936dafbfd

View File

@ -538,6 +538,8 @@ class Commande extends CommonObject
// If stock is decremented on validate order, we must reincrement it
if($conf->stock->enabled && $conf->global->STOCK_CALCULATE_ON_VALIDATE_ORDER == 1)
{
require_once(DOL_DOCUMENT_ROOT."/product/stock/class/mouvementstock.class.php");
$mouvP = new MouvementStock($this->db);
// We increment stock of product (and sub-products)
$entrepot_id = "1"; //Todo: ajouter possibilite de choisir l'entrepot