From e936dafbfd3f5e92c1e65f8fc2c04ff87c852687 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 May 2010 00:20:03 +0000 Subject: [PATCH] Fix: Missing include --- htdocs/commande/class/commande.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index be31bb80508..37cbd977447 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -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