diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index f82945c5abb..b4541b45715 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -66,7 +66,7 @@ if (empty($_SESSION["takeposterminal"])) { if ($setterminal > 0) { $_SESSION["takeposterminal"] = $setterminal; - setcookie("takeposterminal", $setterminal, (time() + (86400 * 354)), '/', '', (empty($dolibarr_main_force_https) ? false : true), true); // Permanent takeposterminal var in a cookie + setcookie("takeposterminal", (string) $setterminal, (time() + (86400 * 354)), '/', '', (empty($dolibarr_main_force_https) ? false : true), true); // Permanent takeposterminal var in a cookie } if ($setcurrency != "") { @@ -1547,21 +1547,21 @@ if (getDolGlobalString('TAKEPOS_WEIGHING_SCALE')) { $count = 0; while ($count < $MAXPRODUCT) { print '
- onclick="MoreProducts('less')" onclick="MoreProducts('more')" > + onclick="MoreProducts('less')" onclick="MoreProducts('more')" > '; - print ''; + //echo ''; + print ''; } elseif ($count == ($MAXPRODUCT - 1)) { - //echo ''; - print ''; + //echo ''; + print ''; } else { if (!getDolGlobalString('TAKEPOS_HIDE_PRODUCT_PRICES')) { print '
'; @@ -1572,15 +1572,15 @@ if (getDolGlobalString('TAKEPOS_WEIGHING_SCALE')) { print ''; } } ?> - +
- +
...
-