correction typos

This commit is contained in:
Jean-Christophe Engel 2024-10-19 14:32:41 +02:00
parent f6eef8897e
commit 6248904bd8
4 changed files with 13 additions and 13 deletions

View file

@ -48,11 +48,11 @@ $tpl->register_function('money_fac', function (array $params)
if (!isset($user)) {
$user = false;
}
}
if (!isset($name))
{
$name = 'prix[]';
$name = 'prix[]';
}
if (null !== $current_value && !$user) {
@ -62,7 +62,7 @@ $tpl->register_function('money_fac', function (array $params)
if (null !== $current_value) {
$current_value = htmlspecialchars($current_value, ENT_QUOTES, 'UTF-8');
}
$currency = Config::getInstance()->get('monnaie');
return sprintf('<td><nobr><input type="text" pattern="[0-9]*([.,][0-9]{1,2})?" inputmode="decimal" size="8" class="money" style="width: 60%%" onchange="updateSum();" name="%s" value="%s" /><b>%s</b></nobr></td>', $name, $current_value, $currency);
}