Rev 647 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 647 | Rev 707 | ||
|---|---|---|---|
| Line 405... | Line 405... | ||
| 405 | }
|
405 | }
|
| 406 | conteudo.append("DATA DA SOLICITAÇÃO: " + diaAtual + "\n"); |
406 | conteudo.append("DATA DA SOLICITAÇÃO: " + diaAtual + "\n"); |
| 407 | conteudo.append("__________________________________________________\n\n"); |
407 | conteudo.append("__________________________________________________\n\n"); |
| 408 | 408 | ||
| 409 | if (estoqueAuditoria.getTipoDevolucao().equals(TipoDevolucao.ESTORNO_CARTAO.getValor())) { |
409 | if (estoqueAuditoria.getTipoDevolucao().equals(TipoDevolucao.ESTORNO_CARTAO.getValor())) { |
| - | 410 | try { |
|
| - | 411 | Pendencia pendencia = new Pendencia(); |
|
| - | 412 | pendencia.setDescricao("AJUSTAR RECEBÍVEIS. " + TipoDevolucao.parse(estoqueAuditoria.getTipoDevolucao()).getDescricao() + ": " + diaAtual + ". VENDA ID: " + estoqueAuditoria.getSequencialVenda()); |
|
| - | 413 | pendencia.setUsuario(usuario); |
|
| - | 414 | pendencia.setData(DataUtils.getDataAtual()); |
|
| - | 415 | pendencia.setLoja(loja); |
|
| - | 416 | Perfil perfilFinanceiro = new Perfil(); |
|
| - | 417 | perfilFinanceiro.setCodigo(ConstantesSEC.SETOR_FINANCEIRO_2); |
|
| - | 418 | pendencia.setPerfil(perfilFinanceiro); |
|
| - | 419 | pendenciaService.cadastrar(pendencia); |
|
| - | 420 | } catch (Exception e) {} |
|
| - | 421 | ||
| 410 | new GerenciadorEmailImpl() |
422 | new GerenciadorEmailImpl() |
| 411 | .comEmailsDestino(ConstantesSEC.DESTINATARIOS_EMAIL_DIRECAO) |
423 | .comEmailsDestino(ConstantesSEC.DESTINATARIOS_EMAIL_DIRECAO) |
| 412 | .comAssunto("ESPAÇO CASE - ESTORNO VIA CARTÃO: " + diaAtual) |
424 | .comAssunto("ESPAÇO CASE - ESTORNO VIA CARTÃO: " + diaAtual) |
| 413 | .comConteudo(conteudo.toString()) |
425 | .comConteudo(conteudo.toString()) |
| 414 | .enviar(); |
426 | .enviar(); |
| Line 424... | Line 436... | ||
| 424 | Pendencia pendencia = new Pendencia(); |
436 | Pendencia pendencia = new Pendencia(); |
| 425 | pendencia.setDescricao("SOLICITAÇÃO DE " + TipoDevolucao.parse(estoqueAuditoria.getTipoDevolucao()).getDescricao() + ": " + diaAtual + ". VENDA ID: " + estoqueAuditoria.getSequencialVenda()); |
437 | pendencia.setDescricao("SOLICITAÇÃO DE " + TipoDevolucao.parse(estoqueAuditoria.getTipoDevolucao()).getDescricao() + ": " + diaAtual + ". VENDA ID: " + estoqueAuditoria.getSequencialVenda()); |
| 426 | pendencia.setUsuario(usuario); |
438 | pendencia.setUsuario(usuario); |
| 427 | pendencia.setData(DataUtils.getDataAtual()); |
439 | pendencia.setData(DataUtils.getDataAtual()); |
| 428 | pendencia.setLoja(loja); |
440 | pendencia.setLoja(loja); |
| 429 | Perfil perfilRh = new Perfil(); |
- | |
| 430 | perfilRh.setCodigo(ConstantesSEC.SETOR_FINANCEIRO_2); |
- | |
| 431 | pendencia.setPerfil(perfilRh); |
- | |
| - | 441 | Perfil perfilFinanceiro = new Perfil(); |
|
| - | 442 | perfilFinanceiro.setCodigo(ConstantesSEC.SETOR_FINANCEIRO_2); |
|
| - | 443 | pendencia.setPerfil(perfilFinanceiro); |
|
| 432 | pendenciaService.cadastrar(pendencia); |
444 | pendenciaService.cadastrar(pendencia); |
| 433 | } catch (Exception e) {} |
445 | } catch (Exception e) {} |
| 434 | }
|
446 | }
|
| 435 | 447 | ||
| 436 | estoqueAuditoria = cadastrarAuditoria(usuario, produtoLoja, tipoEstoqueAuditoria, produtoLoja.getQuantidadeEstoque(), produtoLoja.getQuantidadeEstoque(), estoqueAuditoria.getCliente(), estoqueAuditoria.getObservacao(), TipoEstoqueAuditoriaVerificacao.NAO_VERIFICADO.getValor()); |
448 | estoqueAuditoria = cadastrarAuditoria(usuario, produtoLoja, tipoEstoqueAuditoria, produtoLoja.getQuantidadeEstoque(), produtoLoja.getQuantidadeEstoque(), estoqueAuditoria.getCliente(), estoqueAuditoria.getObservacao(), TipoEstoqueAuditoriaVerificacao.NAO_VERIFICADO.getValor()); |