From 5c4b537a65768ccfc33005e8fe24e7032844aa69 Mon Sep 17 00:00:00 2001
From: simnandez <jmenent@2byte.es>
Date: Tue, 12 Mar 2013 11:49:15 +0100
Subject: [PATCH] Fix: [ bug #762 ] Bad profit calculation in Reporting

---
 ChangeLog                        | 1 +
 htdocs/compta/resultat/index.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 3e0961118f8..6e3fc51de0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@ English Dolibarr ChangeLog
 - Fix: Package for launchpad
 - Fix: [ bug #736 ] Missing column in llx_c_chargesociales  
 - Fix: Localtax2 for Spain must be based into buyer
+- Fix: [ bug #762 ] Bad profit calculation in Reporting
 
 
 
diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php
index 42c4e5d066e..afc7e7d3eba 100644
--- a/htdocs/compta/resultat/index.php
+++ b/htdocs/compta/resultat/index.php
@@ -555,7 +555,7 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
 	if (isset($totentrees[$annee]) || isset($totsorties[$annee]))
 	{
 		$in=(isset($totentrees[$annee])?price2num($totentrees[$annee], 'MT'):0);
-		$out=(isset($totsorties[$annee])?price2num($totsorties[$annee],' MT'):0);
+		$out=(isset($totsorties[$annee])?price2num($totsorties[$annee],'MT'):0);
 		print price($in-$out).'</td>';
 		//  print '<td>&nbsp;</td>';
 	}
-- 
GitLab