diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php
index 5797f52053d..d55d8901be5 100644
--- a/htdocs/takepos/index.php
+++ b/htdocs/takepos/index.php
@@ -1190,14 +1190,14 @@ if (!empty($conf->global->TAKEPOS_WEIGHING_SCALE)) {
global->TAKEPOS_HIDE_CATEGORY == 1) {
- print '
';
- } else {
- print '
';
- }
+ if ($conf->global->TAKEPOS_HIDE_CATEGORY == 1) {
+ print '
';
+ } else {
+ print '
';
+ }
$count = 0;
- while ($count < $MAXCATEG) {
- ?>
+ while ($count < $MAXCATEG) {
+ ?>
global->TAKEPOS_WEIGHING_SCALE)) {
...
-
+
global->TAKEPOS_HIDE_CATEGORY == 1) {
print ' style="width:100%;"';
- } ?>>
+ } ?>>
global->TAKEPOS_WEIGHING_SCALE)) {
} else {
print '
+ ?>
onclick="MoreProducts('less');" onclick="MoreProducts('more');" >
+ } if ($count == ($MAXPRODUCT - 1)) {
+ ?> onclick="MoreProducts('more');" >
';