1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Stile del codice

This commit is contained in:
Thomas Zilio
2020-03-31 20:34:31 +02:00
parent 5355c4f943
commit 071f3b827f
16 changed files with 230 additions and 248 deletions

View File

@@ -592,8 +592,7 @@ class Validator
if ($info['type'] == 'decimal') {
if (in_array($key, ['PrezzoUnitario', 'PrezzoTotale'])) {
$output = number_format($output, setting('Cifre decimali per importi'), '.', '');
}
else if (in_array($key, ['Quantita'])) {
} elseif (in_array($key, ['Quantita'])) {
$output = number_format($output, setting('Cifre decimali per quantità'), '.', '');
} else {
$output = number_format($output, 2, '.', '');