diff --git a/htdocs/takepos/admin/bar.php b/htdocs/takepos/admin/bar.php
index 3d4bd490dde..5afa8dc060b 100644
--- a/htdocs/takepos/admin/bar.php
+++ b/htdocs/takepos/admin/bar.php
@@ -105,14 +105,16 @@ print "\n";
if ($conf->global->TAKEPOS_BAR_RESTAURANT && $conf->global->TAKEPOS_PRINT_METHOD != "browser") {
print '
| ';
print $langs->trans("OrderPrinters").' ('.$langs->trans("Setup").')';
- print ' | ';
+ print ' | ';
+ print '';
print ajax_constantonoff("TAKEPOS_ORDER_PRINTERS", array(), $conf->entity, 0, 0, 1, 0);
//print $form->selectyesno("TAKEPOS_ORDER_PRINTERS", $conf->global->TAKEPOS_ORDER_PRINTERS, 1);
print ' |
';
print '| ';
print $langs->trans("OrderNotes");
- print ' | ';
+ print ' | ';
+ print '';
print ajax_constantonoff("TAKEPOS_ORDER_NOTES", array(), $conf->entity, 0, 0, 1, 0);
//print $form->selectyesno("TAKEPOS_ORDER_NOTES", $conf->global->TAKEPOS_ORDER_NOTES, 1);
print ' |
';
@@ -120,14 +122,16 @@ if ($conf->global->TAKEPOS_BAR_RESTAURANT && $conf->global->TAKEPOS_PRINT_METHOD
print '| ';
print $langs->trans("BasicPhoneLayout");
-print ' | ';
+print ' | ';
+print '';
//print $form->selectyesno("TAKEPOS_PHONE_BASIC_LAYOUT", $conf->global->TAKEPOS_PHONE_BASIC_LAYOUT, 1);
print ajax_constantonoff("TAKEPOS_PHONE_BASIC_LAYOUT", array(), $conf->entity, 0, 0, 1, 0);
print ' |
';
print '| ';
print $langs->trans("ProductSupplements");
-print ' | ';
+print ' | ';
+print '';
//print $form->selectyesno("TAKEPOS_SUPPLEMENTS", $conf->global->TAKEPOS_SUPPLEMENTS, 1);
print ajax_constantonoff("TAKEPOS_SUPPLEMENTS", array(), $conf->entity, 0, 0, 1, 0);
print ' |
';
@@ -136,55 +140,30 @@ if ($conf->global->TAKEPOS_SUPPLEMENTS)
{
print '| ';
print $langs->trans("SupplementCategory");
- print ' | ';
+ print ' | ';
+ print '';
print $form->select_all_categories(Categorie::TYPE_PRODUCT, $conf->global->TAKEPOS_SUPPLEMENTS_CATEGORY, 'TAKEPOS_SUPPLEMENTS_CATEGORY', 64, 0, 0);
print ajax_combobox('TAKEPOS_SUPPLEMENTS_CATEGORY');
print " |
\n";
}
-print '| ';
-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 ' | ';
+print '';
print ajax_constantonoff("TAKEPOS_QR_MENU", array(), $conf->entity, 0, 0, 1, 0);
print ' |
';
+print '| ';
+print 'QR - '.$langs->trans("AutoOrder");
+print ' | ';
+print '';
+print ajax_constantonoff("TAKEPOS_AUTO_ORDER", array(), $conf->entity, 0, 0, 1, 0);
+print ' |
';
+
print '';
-if ($conf->global->TAKEPOS_AUTO_ORDER)
-{
- print '
';
- print '';
- print '';
- print '| '.$langs->trans("Table").' | '.$langs->trans("URL").' | '.$langs->trans("QR").' | ';
- print "
\n";
-
- //global $dolibarr_main_url_root;
- $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
- $sql = "SELECT rowid, entity, label, leftpos, toppos, floor FROM ".MAIN_DB_PREFIX."takepos_floor_tables";
- $resql = $db->query($sql);
- $rows = array();
- while ($row = $db->fetch_array($resql)) {
- print '| ';
- print $langs->trans("Table")." ".$row['label'];
- print ' | ';
- print "".$urlwithroot."/takepos/public/auto_order.php?key=".dol_encode($row['rowid'])."";
- print ' | ';
- print " ";
- print ' |
';
- }
-
- print '
';
-}
-
-
if ($conf->global->TAKEPOS_QR_MENU)
{
$urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
@@ -202,6 +181,33 @@ if ($conf->global->TAKEPOS_QR_MENU)
print '';
}
+if ($conf->global->TAKEPOS_AUTO_ORDER)
+{
+ print '
';
+ print '';
+ print '';
+ print '| '.$langs->trans("Table").' | '.$langs->trans("URL").' | '.$langs->trans("QR").' | ';
+ print "
\n";
+
+ //global $dolibarr_main_url_root;
+ $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
+ $sql = "SELECT rowid, entity, label, leftpos, toppos, floor FROM ".MAIN_DB_PREFIX."takepos_floor_tables";
+ $resql = $db->query($sql);
+ $rows = array();
+ while ($row = $db->fetch_array($resql)) {
+ print '| ';
+ print $langs->trans("Table")." ".$row['label'];
+ print ' | ';
+ print "".$urlwithroot."/takepos/public/auto_order.php?key=".dol_encode($row['rowid'])."";
+ print ' | ';
+ print " ";
+ print ' |
';
+ }
+
+ print '
';
+}
+
print '';
print '
';
diff --git a/htdocs/takepos/public/menu.php b/htdocs/takepos/public/menu.php
index c051ae4d673..217da157c2f 100644
--- a/htdocs/takepos/public/menu.php
+++ b/htdocs/takepos/public/menu.php
@@ -45,7 +45,7 @@ if (!$conf->global->TAKEPOS_QR_MENU) accessforbidden(); // If Restaurant Menu is