From 5a66e1f98ad1776a2c32575410c67cafd0e48364 Mon Sep 17 00:00:00 2001
From: Maxime Kohlhaas <maxime@atm-consulting.fr>
Date: Sun, 19 Apr 2015 00:26:05 +0200
Subject: [PATCH] Fix : include facture class for outstanding bill

---
 htdocs/societe/class/societe.class.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php
index 99d76411239..8e5622cde77 100644
--- a/htdocs/societe/class/societe.class.php
+++ b/htdocs/societe/class/societe.class.php
@@ -3103,6 +3103,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;
-- 
GitLab