mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Fix lunghezza campo PrezzoUnitario per problemi di arrotondamento e calcolo FE
This commit is contained in:
parent
a3b384f4f3
commit
316cae2066
@ -590,8 +590,8 @@ class Validator
|
|||||||
// Operazioni di normalizzazione
|
// Operazioni di normalizzazione
|
||||||
// Formattazione decimali
|
// Formattazione decimali
|
||||||
if ($info['type'] == 'decimal') {
|
if ($info['type'] == 'decimal') {
|
||||||
if (in_array($key, ['PrezzoUnitario', 'PrezzoTotale'])) {
|
if (in_array($key, ['PrezzoUnitario'])) {
|
||||||
$output = number_format($output, setting('Cifre decimali per importi'), '.', '');
|
$output = number_format($output, 6, '.', '');
|
||||||
} elseif (in_array($key, ['Quantita'])) {
|
} elseif (in_array($key, ['Quantita'])) {
|
||||||
$output = number_format($output, setting('Cifre decimali per quantità'), '.', '');
|
$output = number_format($output, setting('Cifre decimali per quantità'), '.', '');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user