Merge pull request #14921 from ptibogxiv/patch-383

NEW set entity when creating invoice on takepos
This commit is contained in:
Laurent Destailleur 2020-10-08 19:30:37 +02:00 committed by GitHub
commit 1b92e03f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,6 +288,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)
{