1
0
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:
MatteoPistorello 2023-07-25 10:14:47 +02:00
parent f3108eb2c6
commit 2007e33b57

View File

@ -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)