diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 3c21959dfec..649af79e6cc 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -3168,6 +3168,7 @@ class Societe extends CommonObject if ($resql) { $outstandingBill = 0; + require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; $facturestatic=new Facture($this->db); while($obj=$this->db->fetch_object($resql)) { $facturestatic->id=$obj->rowid;