NEW set entity when creating invoice on takepos
usefull for marketplace, coworking, multibranding shop
This commit is contained in:
parent
07e1646b3a
commit
1a407e4c22
@ -284,6 +284,7 @@ if (($action == "addline" || $action == "freezone") && $placeid == 0)
|
||||
$invoice->date = dol_now();
|
||||
$invoice->module_source = 'takepos';
|
||||
$invoice->pos_source = $_SESSION["takeposterminal"];
|
||||
$invoice->entity = !empty($_SESSION["takeposinvoiceentity"])?$_SESSION["takeposinvoiceentity"]:$conf->entity;
|
||||
|
||||
if ($invoice->socid <= 0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user