Rev 470 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 470 | Rev 545 | ||
|---|---|---|---|
| Line 216... | Line 216... | ||
| 216 | public void iniciarNfeRemessa() { |
216 | public void iniciarNfeRemessa() { |
| 217 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
217 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 218 | public void execute() { |
218 | public void execute() { |
| 219 | NotaFiscal notaFiscal = new NotaFiscal(); |
219 | NotaFiscal notaFiscal = new NotaFiscal(); |
| 220 | notaFiscal.setTipoModeloNotaFiscal(TipoModeloNotaFiscal.MODELO_NFE_55.getValor()); |
220 | notaFiscal.setTipoModeloNotaFiscal(TipoModeloNotaFiscal.MODELO_NFE_55.getValor()); |
| 221 | notaFiscal.setTipoNotaFiscal(TipoNotaFiscal.NFE_REMESSA.getValor()); |
- | |
| 222 | notaFiscal.setSerie(TipoNotaFiscal.NFE_REMESSA.getSerie()); |
- | |
| - | 221 | notaFiscal.setTipoNotaFiscal(TipoNotaFiscal.NFE_REMESSA_SAIDA.getValor()); |
|
| - | 222 | notaFiscal.setSerie(TipoNotaFiscal.NFE_REMESSA_SAIDA.getSerie()); |
|
| 223 | notaFiscal.setDataHoraEmissao(DataUtils.getDataAtual()); |
223 | notaFiscal.setDataHoraEmissao(DataUtils.getDataAtual()); |
| 224 | notaFiscal.setPessoaEmitente(getNotaFiscalRemessa().getLojaEmitente().getPessoaJuridica()); |
224 | notaFiscal.setPessoaEmitente(getNotaFiscalRemessa().getLojaEmitente().getPessoaJuridica()); |
| 225 | notaFiscal.setPessoaDestinatario(getNotaFiscalRemessa().getLojaDestino().getPessoaJuridica()); |
225 | notaFiscal.setPessoaDestinatario(getNotaFiscalRemessa().getLojaDestino().getPessoaJuridica()); |
| 226 | notaFiscalService.alterar(notaFiscal); |
226 | notaFiscalService.alterar(notaFiscal); |
| 227 | getNotaFiscalRemessa().preencherDadosNotaFiscal(notaFiscal); |
227 | getNotaFiscalRemessa().preencherDadosNotaFiscal(notaFiscal); |