fatture da scontrino

This commit is contained in:
2025-01-10 12:23:20 +01:00
parent 5c41ea2ead
commit 9378b27e4c

View File

@@ -1290,7 +1290,8 @@ public class DocOrdCalTotaliRules extends QueryRules {
(!UtilityString.isNullOrEmpty(testata.getCodPaga()) || !UtilityString.isNullOrEmpty(costoEsenzione) || !UtilityString.isNullOrEmpty(testata.getCodVvet()))) {
maxRigaSpesa = addAltreSpese(connection, testata, castelletto, speseCalc, maxRigaSpesa, whereCondExcSpese, cifreDec, ventilazione, flagPrzIva);
calcTotImponib(testata, connection, flagPrzIva, castelletto, cifreDec);
if ( maxRigaSpesa > 0)
calcTotImponib(testata, connection, flagPrzIva, castelletto, cifreDec);
}
//Imposta di bollo
@@ -1307,8 +1308,9 @@ public class DocOrdCalTotaliRules extends QueryRules {
totDoc = totDoc.add(iva.getImponibile().add(iva.getImposta()));
}
if (totDoc.compareTo(BigDecimal.ZERO) != 0) {
addImpostaBollo(connection, testata, castelletto, speseCalc, maxRigaSpesa, whereCondExcSpese, totDoc, ventilazione);
calcTotImponib(testata, connection, flagPrzIva, castelletto, cifreDec);
maxRigaSpesa = addImpostaBollo(connection, testata, castelletto, speseCalc, maxRigaSpesa, whereCondExcSpese, totDoc, ventilazione);
if (maxRigaSpesa > 0)
calcTotImponib(testata, connection, flagPrzIva, castelletto, cifreDec);
}
}
}