From b6b422042c10d7e7250344af3ba32f3366746e23 Mon Sep 17 00:00:00 2001 From: Paris Liakos <rootatwc@gmail.com> Date: Tue, 29 Dec 2015 03:43:49 +0200 Subject: [PATCH] MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND is always overriden --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index e4bb572a3eb..eb3f094b7d7 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -2050,7 +2050,7 @@ abstract class CommonObject $forcedroundingmode=$roundingadjust; if ($forcedroundingmode == 'auto' && isset($conf->global->MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND)) $forcedroundingmode=$conf->global->MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND; - if ($forcedroundingmode == 'auto') $forcedroundingmode='0'; + elseif ($forcedroundingmode == 'auto') $forcedroundingmode='0'; $error=0; -- GitLab