Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions src/main/java/br/com/swconsultoria/nfe/util/IbsCbsUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ public TTribNFe montaImpostosDet(String cclassTrib, TNFe.InfNFe.Det det, String
}

private boolean deveMontarGrupoIBSCBS() {
return Boolean.TRUE.equals(cstIbsCbs.getIndIBSCBS()) &&
(cstIbsCbs.getIndIBSCBSMono() || cstIbsCbs.getIndDif() ||
cstIbsCbs.getIndTransfCred() || cstIbsCbs.getIndRedBC());
return Boolean.TRUE.equals(cstIbsCbs.getIndIBSCBS())
|| Boolean.TRUE.equals(cstIbsCbs.getIndIBSCBSMono())
|| Boolean.TRUE.equals(cstIbsCbs.getIndRedAliq())
|| Boolean.TRUE.equals(cstIbsCbs.getIndDif())
|| Boolean.TRUE.equals(cstIbsCbs.getIndTransfCred());
}

private TCIBS montarGrupoIBSCBS() {
Expand Down Expand Up @@ -234,10 +236,7 @@ private <T> T criarGrupoImposto(
BigDecimal percentRed = ObjetoUtil.getOrZero(percentualReducao);
BigDecimal aliqEfet = aliq;

if (Boolean.TRUE.equals(cstIbsCbs.getIndRedAliq()) &&
percentRed.compareTo(BigDecimal.ZERO) > 0 &&
Boolean.FALSE.equals(classTribIbsCbs.getIndTribRegular())) {

if (Boolean.TRUE.equals(cstIbsCbs.getIndRedAliq()) && percentRed.compareTo(BigDecimal.ZERO) > 0) {
TRed gRed = criarRedutor(percentRed, aliq);
redSetter.set(grupo, gRed);
aliqEfet = new BigDecimal(gRed.getPAliqEfet());
Expand Down Expand Up @@ -371,4 +370,4 @@ private TIBSCBSMonoTot.GCBS criarTotaisCBS() {
gCbs.setVCredPresCondSus("0.00");
return gCbs;
}
}
}