diff --git a/htdocs/cashdesk/include/keypad.php b/htdocs/cashdesk/include/keypad.php index e8c3780f348..cc56a2d1192 100644 --- a/htdocs/cashdesk/include/keypad.php +++ b/htdocs/cashdesk/include/keypad.php @@ -15,8 +15,17 @@ * along with this program. If not, see . */ +/** + * Return a string to outptu a keypad + * + * @param string $keypadname Key pad name + * @param string $formname Form name + * @return string HTML code to show a js keypad. + */ function genkeypad($keypadname, $formname) { + if (empty($conf->global->CASHDESK_SHOW_KEYPAD)) return ''; + // défine the font size of button $btnsize=32; $sz=''."\n"; @@ -33,7 +42,7 @@ function genkeypad($keypadname, $formname) $sz.=''."\n"; $sz.=''."\n"; $sz.='
'."\n"; - + $sz.=''."\n"; $sz.=''."\n";