From 0179160f6cb937e3818c4ced09b316b948c4722b Mon Sep 17 00:00:00 2001
From: Articoder InfoSec Team <infosec@articoder.com>
Date: Fri, 14 Jul 2017 15:57:22 -0700
Subject: [PATCH] Reason: similar change is present elsewhere in the code

Notes: please review carefully before accepting. patch propagation. manual test run.
Reviewed By: https://github.com/dchichkov
Cherry picked from:
===
From 0d62bd704e7a61d66842a7c91cf3e50a249461f9 Mon Sep 17 00:00:00 2001
From: Juanjo Menent <jmenent@2byte.es>
Date: Wed, 22 Jun 2016 18:59:51 +0200
Subject: [PATCH] Fix: Bad column totalizing if MAIN_SHOW_HT_ON_SUMMARY activated
---
 htdocs/compta/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index 321c2456ddd..46104845ba0 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -378,7 +378,7 @@ if (! empty($conf->facture->enabled) && $user->rights->facture->lire)
 				print '</tr>';
 
 				$total_ttc +=  $obj->total_ttc;
-				$total += $obj->total;
+				$total += $obj->total_hc;
 				$totalam +=  $obj->am;
 				
 				$i++;
-- 
GitLab