We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4231101 commit 40ec182Copy full SHA for 40ec182
src/main/java/br/com/swconsultoria/nfe/util/RetornoUtil.java
@@ -25,7 +25,8 @@ public static void validaCancelamento(TRetEnvEvento retorno) throws NfeException
25
26
final String[] erro = {""};
27
retorno.getRetEvento().forEach( retEvento -> {
28
- if (!StatusEnum.EVENTO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat())) {
+ if (!StatusEnum.EVENTO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat()) &&
29
+ !StatusEnum.CANCELAMENTO_FORA_PRAZO.getCodigo().equals(retEvento.getInfEvento().getCStat())) {
30
erro[0] += retEvento.getInfEvento().getChNFe() + " - " +retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator();
31
}
32
});
0 commit comments