Skip to content

Commit

Permalink
fix: importazione fattura con iva mancante
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Dec 19, 2024
1 parent c501c1b commit ae147a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/importFE/src/FatturaOrdinaria.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function getRighe()
// Calcolo la differenza IVA per aliquota, per creare una riga relativa all'arrotondamento IVA
foreach ($riepiloghi_raggruppati as $riepilogo) {
$valore = 0;
$differenza_iva = round((float) $riepilogo['Imposta'] - round($totale_imposta[$riepilogo['AliquotaIVA']], 2), 2);
$differenza_iva = ($totale_imposta[$riepilogo['AliquotaIVA']] ? round((float) $riepilogo['Imposta'] - round($totale_imposta[$riepilogo['AliquotaIVA']], 2), 2): 0);

if ($differenza_iva) {
$valore = $differenza_iva * 100 / ($riepilogo['AliquotaIVA'] ?: 1);
Expand Down

0 comments on commit ae147a6

Please sign in to comment.