diff --git a/htdocs/langs/en_US/cashdesk.lang b/htdocs/langs/en_US/cashdesk.lang index a028e83449b..71a2a992e19 100644 --- a/htdocs/langs/en_US/cashdesk.lang +++ b/htdocs/langs/en_US/cashdesk.lang @@ -109,4 +109,6 @@ OrderTemplateToUse=Order template to use BarRestaurant=Bar Restaurant AutoOrder=Order by the customer himself RestaurantMenu=Menu -CustomerMenu=Customer menu \ No newline at end of file +CustomerMenu=Customer menu +ScanToMenu=Scan QR code to see the menu +ScanToOrder=Scan QR code to order \ No newline at end of file diff --git a/htdocs/takepos/admin/bar.php b/htdocs/takepos/admin/bar.php index 0f47990cb4a..97f651efdb2 100644 --- a/htdocs/takepos/admin/bar.php +++ b/htdocs/takepos/admin/bar.php @@ -161,7 +161,7 @@ if ($conf->global->TAKEPOS_AUTO_ORDER) print ''; print "".$urlwithroot."/takepos/public/auto_order.php?key=".dol_encode($row['rowid']).""; print ''; - print ""; + print ""; print ''; } @@ -180,7 +180,7 @@ if ($conf->global->TAKEPOS_QR_MENU) print ''; print "".$urlwithroot."/takepos/public/menu.php"; print ''; - print ""; + print ""; print ''; print ''; } diff --git a/htdocs/takepos/admin/printqr.php b/htdocs/takepos/admin/printqr.php new file mode 100644 index 00000000000..b646eaa7f1d --- /dev/null +++ b/htdocs/takepos/admin/printqr.php @@ -0,0 +1,49 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/** + * \file htdocs/takepos/admin/printqr.php + * \ingroup takepos + * \brief Print QR Menu + */ + +require '../../main.inc.php'; + +$langs->load("cashdesk"); + +$id = GETPOST('id', 'int'); + +$_GET['optioncss'] = "print"; + +print '
'; + +if (GETPOSTISSET("id")) { + print '

'.$langs->trans("ScanToOrder").'

'; + print ""; +} +else { + print '

'.$langs->trans("ScanToMenu").'

'; + print ""; +} + +print '

'.$mysoc->name.'

'; + +print '
'; + +llxFooter(); + +$db->close();