From 72a94788010eb3822d90c63924b75ed87153c0b7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Jul 2023 05:03:59 +0200 Subject: [PATCH 1/2] FIX Selection of customer on second or more parallel sell in TakePOS --- htdocs/societe/list.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 7af26acc3ae..a499f7f88a7 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -997,6 +997,9 @@ print ''; print ''; //print ''; print ''; +if (!empty($place)) { + print ''; +} print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'building', 0, $newcardbutton, '', $limit, 0, 0, 1); From 0bc76648703aa56ac64529bacc15e57a7a601b7b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Jul 2023 05:45:45 +0200 Subject: [PATCH 2/2] FIX Bad management of localtax on TakePOS due to typo error in var name --- htdocs/takepos/invoice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index c81e8f5787a..9ed8a41d2bd 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -466,7 +466,7 @@ if (empty($reshook)) { } if (($action == "addline" || $action == "freezone") && $placeid == 0) { - $invoice->socid = getDolGlobalString("$constforcompanyid"); + $invoice->socid = getDolGlobalString($constforcompanyid); $invoice->date = dol_now(); $invoice->module_source = 'takepos'; $invoice->pos_source = isset($_SESSION["takeposterminal"]) ? $_SESSION["takeposterminal"] : '' ; @@ -543,7 +543,7 @@ if (empty($reshook)) { $invoice->fetch_thirdparty(); $array_options = array(); - $line = array('description' => $prod->description, 'price' => $price, 'tva_tx' => $tva_tx, 'locatax1_tx' => $localtax1_tx, 'locatax2_tx' => $localtax2_tx, 'remise_percent' => $customer->remise_percent, 'price_ttc' => $price_ttc, 'array_options' => $array_options); + $line = array('description' => $prod->description, 'price' => $price, 'tva_tx' => $tva_tx, 'localtax1_tx' => $localtax1_tx, 'localtax2_tx' => $localtax2_tx, 'remise_percent' => $customer->remise_percent, 'price_ttc' => $price_ttc, 'array_options' => $array_options); /* setup of margin calculation */ if (isset($conf->global->MARGIN_TYPE)) {