From e280fc3ad1442c8cccfcdada4ac9b9feedf2f231 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Sun, 4 Oct 2020 16:53:31 +0200 Subject: [PATCH] Fix and save change of currency in invoice (takepos) --- htdocs/takepos/invoice.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index d3ec86a7268..b463751dfa0 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -278,6 +278,10 @@ if ($action == 'history') $invoice->fetch($placeid); } +if (!empty($conf->multicurrency->enabled) && $_SESSION["takeposcustomercurrency"]!="" && $conf->currency!=$_SESSION["takeposcustomercurrency"]) { + $invoice->setMulticurrencyCode($_SESSION["takeposcustomercurrency"]); +} + if (($action == "addline" || $action == "freezone") && $placeid == 0) { $invoice->socid = $conf->global->$constforcompanyid;