mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Aumento cifre decimali a 4 in XML fattura elettronica
This commit is contained in:
@@ -590,8 +590,12 @@ class Validator
|
||||
// Operazioni di normalizzazione
|
||||
// Formattazione decimali
|
||||
if ($info['type'] == 'decimal') {
|
||||
if( in_array($key, array('Quantita', 'PrezzoUnitario', 'PrezzoTotale')) ){
|
||||
$output = number_format($output, 4, '.', '');
|
||||
} else {
|
||||
$output = number_format($output, 2, '.', '');
|
||||
}
|
||||
}
|
||||
|
||||
// Formattazione date
|
||||
elseif ($info['type'] == 'date') {
|
||||
|
Reference in New Issue
Block a user