Aumento cifre decimali a 4 in XML fattura elettronica

This commit is contained in:
Fabio Lovato 2019-01-29 12:00:39 +01:00
parent e67eb7e08e
commit f1d311d25e
1 changed files with 5 additions and 1 deletions

View File

@ -590,7 +590,11 @@ class Validator
// Operazioni di normalizzazione
// Formattazione decimali
if ($info['type'] == 'decimal') {
$output = number_format($output, 2, '.', '');
if( in_array($key, array('Quantita', 'PrezzoUnitario', 'PrezzoTotale')) ){
$output = number_format($output, 4, '.', '');
} else {
$output = number_format($output, 2, '.', '');
}
}
// Formattazione date