Fix and save change of currency in invoice (takepos)
This commit is contained in:
parent
257012aa19
commit
e280fc3ad1
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user