From a4892071227156be6a0c8729c91b46eb6474aca2 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Mon, 12 Aug 2019 13:56:12 +0200 Subject: [PATCH] Fix force recalculate price with multicurrency --- htdocs/core/class/commonobject.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index e6d47c53d5f..69b43dbe514 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1936,10 +1936,16 @@ abstract class CommonObject { foreach ($this->lines as &$line) { + // Amounts in company currency will be recalculated if($mode == 1) { $line->subprice = 0; } + // Amounts in foreign currency will be recalculated + if($mode == 2) { + $line->multicurrency_subprice = 0; + } + switch ($this->element) { case 'propal': $this->updateline(