NEW set entity when creating invoice on takepos

usefull for marketplace, coworking, multibranding shop
This commit is contained in:
ptibogxiv 2020-10-04 22:09:40 +02:00 committed by GitHub
parent 07e1646b3a
commit 1a407e4c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{