fatture da scontrino
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user