Rev 636 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 636 | Rev 638 | ||
|---|---|---|---|
| Line 72... | Line 72... | ||
| 72 | try { |
72 | try { |
| 73 | PosVenda posVendaParaAlterar = this.consultarPorId(new PosVenda(posVendaDTO.getSequencial())); |
73 | PosVenda posVendaParaAlterar = this.consultarPorId(new PosVenda(posVendaDTO.getSequencial())); |
| 74 | posVendaParaAlterar.setDataInicio(DataUtils.getDataAtual()); |
74 | posVendaParaAlterar.setDataInicio(DataUtils.getDataAtual()); |
| 75 | posVendaParaAlterar.setObservacao(posVendaDTO.getObservacao()); |
75 | posVendaParaAlterar.setObservacao(posVendaDTO.getObservacao()); |
| 76 | posVendaParaAlterar.setTipoFinalizacao(posVendaDTO.getTipoFinalizacao()); |
76 | posVendaParaAlterar.setTipoFinalizacao(posVendaDTO.getTipoFinalizacao()); |
| 77 | // NpsPosVendaDTO npsPosVendaDTO = npsPosVendaService.consultarPorPosVendaEeTipo(posVendaDTO.getSequencial(), TipoNpsPosVenda.ATENDIMENTO_A.getValor());
|
- | |
| 78 | // NpsPosVenda npsPosVenda = npsPosVendaService.consultarPorId(new NpsPosVenda(npsPosVendaDTO.getSequencial()));
|
- | |
| 79 | // npsPosVendaService.alterar(npsPosVenda);
|
- | |
| 80 | this.alterar(posVendaParaAlterar); |
77 | this.alterar(posVendaParaAlterar); |
| 81 | } catch (Exception e) { |
78 | } catch (Exception e) { |
| 82 | throw new NegocioException(e.getMessage()); |
79 | throw new NegocioException(e.getMessage()); |
| 83 | }
|
80 | }
|
| 84 | }
|
81 | }
|
| Line 94... | Line 91... | ||
| 94 | posVendaParaFinalizar.setObservacao(posVendaDTO.getObservacao()); |
91 | posVendaParaFinalizar.setObservacao(posVendaDTO.getObservacao()); |
| 95 | if (VerificadorUtil.estaNulo(posVendaDTO.getTipoFinalizacao())) { |
92 | if (VerificadorUtil.estaNulo(posVendaDTO.getTipoFinalizacao())) { |
| 96 | throw new NegocioException("OBRIGATÓRIO INFORMAR O TIPO DE FINALIZAÇÃO"); |
93 | throw new NegocioException("OBRIGATÓRIO INFORMAR O TIPO DE FINALIZAÇÃO"); |
| 97 | }
|
94 | }
|
| 98 | posVendaParaFinalizar.setTipoFinalizacao(posVendaDTO.getTipoFinalizacao()); |
95 | posVendaParaFinalizar.setTipoFinalizacao(posVendaDTO.getTipoFinalizacao()); |
| 99 | // NpsPosVendaDTO npsPosVendaDTO = npsPosVendaService.consultarPorPosVendaEeTipo(posVendaDTO.getSequencial(), TipoNpsPosVenda.ATENDIMENTO_A.getValor());
|
- | |
| 100 | // NpsPosVenda npsPosVenda = npsPosVendaService.consultarPorId(new NpsPosVenda(npsPosVendaDTO.getSequencial()));
|
- | |
| 101 | // npsPosVendaService.alterar(npsPosVenda);
|
- | |
| 102 | this.alterar(posVendaParaFinalizar); |
96 | this.alterar(posVendaParaFinalizar); |
| 103 | } catch (Exception e) { |
97 | } catch (Exception e) { |
| 104 | throw new NegocioException(e.getMessage()); |
98 | throw new NegocioException(e.getMessage()); |
| 105 | }
|
99 | }
|
| 106 | }
|
100 | }
|