Rev 405 | Rev 428 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 405 | Rev 422 | ||
|---|---|---|---|
| Line 493... | Line 493... | ||
| 493 | throw new NegocioException("É preciso informar o estoque"); |
493 | throw new NegocioException("É preciso informar o estoque"); |
| 494 | }
|
494 | }
|
| 495 | verificarSeUsuarioLogadoEhVendedorOuSuperior(usuario); |
495 | verificarSeUsuarioLogadoEhVendedorOuSuperior(usuario); |
| 496 | produtoLoja.setLocalizacao(localizacao); |
496 | produtoLoja.setLocalizacao(localizacao); |
| 497 | if (VerificadorUtil.naoEstaNulo(produtoLoja.getDataContagemPreparacao())) { |
497 | if (VerificadorUtil.naoEstaNulo(produtoLoja.getDataContagemPreparacao())) { |
| 498 | if (diferencaMaiorEmDias(ConstantesSEC.StatusContagem.CONTAGEM_AMARELO_30_DIAS, produtoLoja.getDataContagemPreparacao(), DataUtils.getDataAtual())) { |
- | |
| - | 498 | // if (diferencaMaiorEmDias(ConstantesSEC.StatusContagem.CONTAGEM_AMARELO_30_DIAS, produtoLoja.getDataContagemPreparacao(), DataUtils.getDataAtual())) {
|
|
| 499 | produtoLoja.setDataContagemPreparacao(null); |
499 | produtoLoja.setDataContagemPreparacao(null); |
| 500 | }
|
- | |
| - | 500 | // }
|
|
| 501 | }
|
501 | }
|
| 502 | if (VerificadorUtil.estaNulo(produtoLoja.getDataContagemPreparacao())) { |
502 | if (VerificadorUtil.estaNulo(produtoLoja.getDataContagemPreparacao())) { |
| 503 | produtoLoja.setDataContagemPreparacao(DataUtils.getDataAtual()); |
503 | produtoLoja.setDataContagemPreparacao(DataUtils.getDataAtual()); |
| 504 | produtoLoja.setQuantidadeEstoqueContagem(quantidadeEstoque); |
504 | produtoLoja.setQuantidadeEstoqueContagem(quantidadeEstoque); |
| 505 | produtoLoja.setUsuarioUltimaContagemPreparacao(usuario); |
505 | produtoLoja.setUsuarioUltimaContagemPreparacao(usuario); |