Rev 164 | Rev 195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 164 | Rev 165 | ||
|---|---|---|---|
| Line 334... | Line 334... | ||
| 334 | pedidoVinculado.setHistorico(new ArrayList<PedidoHistorico>()); |
334 | pedidoVinculado.setHistorico(new ArrayList<PedidoHistorico>()); |
| 335 | }
|
335 | }
|
| 336 | pedidoVinculado.getHistorico().add(pedidoHistorico); |
336 | pedidoVinculado.getHistorico().add(pedidoHistorico); |
| 337 | pedidoVinculado.setTipoSituacao(TipoSituacaoPedido.FINALIZADO_COM_VENDAS.getValor()); |
337 | pedidoVinculado.setTipoSituacao(TipoSituacaoPedido.FINALIZADO_COM_VENDAS.getValor()); |
| 338 | pedidoVinculado.setDataUltimaAlteracaoSituacao(DataUtils.getDataAtual()); |
338 | pedidoVinculado.setDataUltimaAlteracaoSituacao(DataUtils.getDataAtual()); |
| 339 | // pedidoVinculado.set
|
- | |
| - | 339 | pedidoVinculado.setVenda(venda); |
|
| 340 | pedidoService.alterar(pedidoVinculado); |
340 | pedidoService.alterar(pedidoVinculado); |
| 341 | }
|
341 | }
|
| 342 | }
|
342 | }
|
| 343 | 343 | ||
| 344 | private void enviarAlertasPorEmail(ParametrosVendaDTO parametrosVenda, Venda venda) { |
344 | private void enviarAlertasPorEmail(ParametrosVendaDTO parametrosVenda, Venda venda) { |