Merge pull request #24804 from altairisfr/hidehistory

NEW : add constant to hide hisory button in takepos
This commit is contained in:
Laurent Destailleur 2023-05-17 15:59:05 +02:00 committed by GitHub
commit 01d76a3bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1241,7 +1241,9 @@ if (empty($conf->global->TAKEPOS_BAR_RESTAURANT)) {
if (!empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) {
$menus[$r++] = array('title'=>'<span class="far fa-building paddingrightonly"></span><div class="trunc">'.$langs->trans("Customer").'</div>', 'action'=>'Customer();');
}
$menus[$r++] = array('title'=>'<span class="fa fa-history paddingrightonly"></span><div class="trunc">'.$langs->trans("History").'</div>', 'action'=>'History();');
if ( ! getDolGlobalString('TAKEPOS_HIDE_HISTORY')) {
$menus[$r++] = array('title'=>'<span class="fa fa-history paddingrightonly"></span><div class="trunc">'.$langs->trans("History").'</div>', 'action'=>'History();');
}
$menus[$r++] = array('title'=>'<span class="fa fa-cube paddingrightonly"></span><div class="trunc">'.$langs->trans("FreeZone").'</div>', 'action'=>'FreeZone();');
$menus[$r++] = array('title'=>'<span class="fa fa-percent paddingrightonly"></span><div class="trunc">'.$langs->trans("Reduction").'</div>', 'action'=>'Reduction();');
$menus[$r++] = array('title'=>'<span class="far fa-money-bill-alt paddingrightonly"></span><div class="trunc">'.$langs->trans("Payment").'</div>', 'action'=>'CloseBill();');