Fix and save change of currency in invoice (takepos)

This commit is contained in:
ptibogxiv 2020-10-04 16:53:31 +02:00 committed by GitHub
parent 257012aa19
commit e280fc3ad1
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"]!="" && $conf->currency!=$_SESSION["takeposcustomercurrency"]) {
$invoice->setMulticurrencyCode($_SESSION["takeposcustomercurrency"]);
}
if (($action == "addline" || $action == "freezone") && $placeid == 0)
{
$invoice->socid = $conf->global->$constforcompanyid;