Annulation "fusion branche simplification"

This reverts commit 16daac2e24, reversing
changes made to 46d0c838ae.
This commit is contained in:
Jean-Christophe Engel 2024-10-19 14:26:06 +02:00
parent 201682f4d7
commit f6eef8897e
11 changed files with 619 additions and 98 deletions

View file

@ -7,6 +7,8 @@ use Paheko\Utils;
define('DEVIS', 0);
define('FACT', 1);
define('CERFA', 2);
define('COTIS', 3);
const PATTERNS_LIST = [
null => 'Aucun, le numéro sera à spécifier manuellement pour chaque document',
@ -46,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) {
@ -60,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);
}