Merge pull request #14916 from ptibogxiv/patch-382
Fix and save change of currency in invoice (takepos)
This commit is contained in:
commit
bb39d7b205
@ -278,6 +278,10 @@ if ($action == 'history')
|
|||||||
$invoice->fetch($placeid);
|
$invoice->fetch($placeid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($conf->multicurrency->enabled) && $_SESSION["takeposcustomercurrency"]!="") {
|
||||||
|
$invoice->setMulticurrencyCode($_SESSION["takeposcustomercurrency"]);
|
||||||
|
}
|
||||||
|
|
||||||
if (($action == "addline" || $action == "freezone") && $placeid == 0)
|
if (($action == "addline" || $action == "freezone") && $placeid == 0)
|
||||||
{
|
{
|
||||||
$invoice->socid = $conf->global->$constforcompanyid;
|
$invoice->socid = $conf->global->$constforcompanyid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user