mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Fix minore
This commit is contained in:
parent
f3108eb2c6
commit
2007e33b57
@ -237,12 +237,11 @@ class FatturaOrdinaria extends FatturaElettronica
|
|||||||
} elseif (is_array($dati_riepilogo)) {
|
} elseif (is_array($dati_riepilogo)) {
|
||||||
foreach ($dati_riepilogo as $dato) {
|
foreach ($dati_riepilogo as $dato) {
|
||||||
$totale_righe += $dato['ImponibileImporto'];
|
$totale_righe += $dato['ImponibileImporto'];
|
||||||
$totale_arrotondamento += $dati_riepilogo['Arrotondamento'];
|
$totale_arrotondamento += $dato['Arrotondamento'];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$totali_righe = array_column($righe, 'PrezzoTotale');
|
$totali_righe = array_column($righe, 'PrezzoTotale');
|
||||||
$totale_righe = sum($totali_righe, null, 2);
|
$totale_righe = sum($totali_righe, null, 2);
|
||||||
$totale_arrotondamento = $dati_riepilogo['Arrotondamento'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nel caso il prezzo sia negativo viene gestito attraverso l'inversione della quantità (come per le note di credito)
|
// Nel caso il prezzo sia negativo viene gestito attraverso l'inversione della quantità (come per le note di credito)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user