diff --git a/htdocs/takepos/admin/bar.php b/htdocs/takepos/admin/bar.php
index 2508ab56040..0f47990cb4a 100644
--- a/htdocs/takepos/admin/bar.php
+++ b/htdocs/takepos/admin/bar.php
@@ -52,9 +52,7 @@ if (GETPOST('action', 'alpha') == 'set')
{
$db->commit();
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
- }
- else
- {
+ } else {
$db->rollback();
setEventMessages($langs->trans("Error"), null, 'errors');
}
@@ -129,11 +127,17 @@ if ($conf->global->TAKEPOS_SUPPLEMENTS)
}
print '
| ';
-print $langs->trans("AutoOrder");
+print 'QR - '.$langs->trans("AutoOrder");
print ' | ';
print ajax_constantonoff("TAKEPOS_AUTO_ORDER", array(), $conf->entity, 0, 0, 1, 0);
print ' |
';
+print '| ';
+print 'QR - '.$langs->trans("CustomerMenu");
+print ' | ';
+print ajax_constantonoff("TAKEPOS_QR_MENU", array(), $conf->entity, 0, 0, 1, 0);
+print ' |
';
+
print '';
@@ -157,13 +161,30 @@ if ($conf->global->TAKEPOS_AUTO_ORDER)
print '';
print "".$urlwithroot."/takepos/public/auto_order.php?key=".dol_encode($row['rowid'])."";
print ' | ';
- print " ";
+ print " ";
print ' | ';
}
print '';
}
+if ($conf->global->TAKEPOS_QR_MENU)
+{
+ $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
+ $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
+ print '
';
+ print '';
+}
+
print '';
print '
';