Merge pull request #14916 from ptibogxiv/patch-382

Fix  and save change of currency in invoice (takepos)
This commit is contained in:
Laurent Destailleur 2020-10-05 16:44:28 +02:00 committed by GitHub
commit bb39d7b205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,6 +278,10 @@ if ($action == 'history')
$invoice->fetch($placeid);
}
if (!empty($conf->multicurrency->enabled) && $_SESSION["takeposcustomercurrency"]!="") {
$invoice->setMulticurrencyCode($_SESSION["takeposcustomercurrency"]);
}
if (($action == "addline" || $action == "freezone") && $placeid == 0)
{
$invoice->socid = $conf->global->$constforcompanyid;