Skip to content

Commit a4aa0a3

Browse files
committed
fix: calcolo arrotondamento in importazione fattura di acquisto se indicato in maniera errata nell'xml
1 parent 7402d43 commit a4aa0a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/importFE/src/FatturaOrdinaria.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ public function saveRighe($articoli, $iva, $conto, $movimentazione = true, $crea
541541
if (abs($diff) > 0.001) {
542542
$arrotondamento_finale = 0;
543543

544-
if ($arrotondamento_documento_xml != 0) {
544+
if ($arrotondamento_documento_xml != 0 && $arrotondamento_documento_xml != $totale_documento) {
545545
// Se c'è un arrotondamento esplicito nel XML, lo usiamo
546546
$arrotondamento_finale = $arrotondamento_documento_xml;
547547
} else {

0 commit comments

Comments
 (0)