From 1f1c75adfb627d6e48543959ee8804bd84241359 Mon Sep 17 00:00:00 2001
From: gauthier <gauthier.verdol@atm-consulting.fr>
Date: Wed, 14 Dec 2016 15:50:50 +0100
Subject: [PATCH] FIX : HT and TTC price should always be displayed together

---
 htdocs/product/price.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/htdocs/product/price.php b/htdocs/product/price.php
index 88c6c3e57b1..3be258f4243 100644
--- a/htdocs/product/price.php
+++ b/htdocs/product/price.php
@@ -1269,14 +1269,14 @@ if ($result)
 			}
 			else
 			{
-				print '<td align="right">' . ($objp->price_base_type != 'TTC' ? price($objp->price) : ''). "</td>";
-				print '<td align="right">' . ($objp->price_base_type == 'TTC' ? price($objp->price_ttc) : '') . "</td>";
+				print '<td align="right">' . price($objp->price). "</td>";
+				print '<td align="right">' . price($objp->price_ttc) . "</td>";
 				if (! empty($conf->dynamicprices->enabled)) { //Only if module is enabled
 					print '<td align="right"></td>';
 				}
 			}
-			print '<td align="right">' . ($objp->price_base_type != 'TTC' ? price($objp->price_min) : '') . '</td>';
-			print '<td align="right">' . ($objp->price_base_type == 'TTC' ? price($objp->price_min_ttc) : '') . '</td>';
+			print '<td align="right">' . price($objp->price_min) . '</td>';
+			print '<td align="right">' . price($objp->price_min_ttc) . '</td>';
 
 			// User
 			print '<td align="right"><a href="' . DOL_URL_ROOT . '/user/card.php?id=' . $objp->user_id . '">' . img_object($langs->trans("ShowUser"), 'user') . ' ' . $objp->login . '</a></td>';
-- 
GitLab