From 11b747ec200fae6f6d8bd32ddbba44245fec9844 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Wed, 17 May 2023 15:51:35 +0200 Subject: [PATCH] add constant to hide hisory button in takepos --- htdocs/takepos/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index 0535e32b8d4..7e1c648d460 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -1241,7 +1241,9 @@ if (empty($conf->global->TAKEPOS_BAR_RESTAURANT)) { if (!empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) { $menus[$r++] = array('title'=>'
'.$langs->trans("Customer").'
', 'action'=>'Customer();'); } -$menus[$r++] = array('title'=>'
'.$langs->trans("History").'
', 'action'=>'History();'); +if ( ! getDolGlobalString('TAKEPOS_HIDE_HISTORY')) { + $menus[$r++] = array('title'=>'
'.$langs->trans("History").'
', 'action'=>'History();'); +} $menus[$r++] = array('title'=>'
'.$langs->trans("FreeZone").'
', 'action'=>'FreeZone();'); $menus[$r++] = array('title'=>'
'.$langs->trans("Reduction").'
', 'action'=>'Reduction();'); $menus[$r++] = array('title'=>'
'.$langs->trans("Payment").'
', 'action'=>'CloseBill();');