Rev 546 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 546 | Rev 548 | ||
|---|---|---|---|
| Line 403... | Line 403... | ||
| 403 | }
|
403 | }
|
| 404 | 404 | ||
| 405 | public void emitirNotaFiscal() { |
405 | public void emitirNotaFiscal() { |
| 406 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
406 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 407 | public void execute() { |
407 | public void execute() { |
| - | 408 | notaFiscalService.alterar(getEntidade()); |
|
| 408 | notaFiscalService.emitirNotaFiscalEletronica(getEntidade()); |
409 | notaFiscalService.emitirNotaFiscalEletronica(getEntidade()); |
| 409 | LancadorMensagem.lancarSucesso("NOTA FISCAL DE " + getEntidade().descricaoTipoNotaFiscalNaturezaOperacao() + " EMITIDA COM SUCESSO"); |
410 | LancadorMensagem.lancarSucesso("NOTA FISCAL DE " + getEntidade().descricaoTipoNotaFiscalNaturezaOperacao() + " EMITIDA COM SUCESSO"); |
| 410 | }
|
- | |
| 411 | }); |
- | |
| 412 | }
|
- | |
| 413 | - | ||
| 414 | public void emitirNotaFiscalImportacao() { |
- | |
| 415 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
- | |
| 416 | public void execute() { |
- | |
| 417 | notaFiscalService.emitirNotaFiscalEletronica(getEntidade()); |
- | |
| 418 | LancadorMensagem.lancarSucesso("NOTA FISCAL DE IMPORTAÇÃO EMITIDA COM SUCESSO"); |
- | |
| 419 | }
|
411 | }
|
| 420 | }); |
412 | }); |
| 421 | }
|
413 | }
|
| 422 | 414 | ||
| 423 | public void cancelarNotaFiscal() { |
415 | public void cancelarNotaFiscal() { |