Rev 321 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 321 | Rev 705 | ||
|---|---|---|---|
| Line 57... | Line 57... | ||
| 57 | for (LojaDTO lojaAtivaDTO : lojasAtivasDTO) { |
57 | for (LojaDTO lojaAtivaDTO : lojasAtivasDTO) { |
| 58 | TempoRealLojaDTO tempoRealLojaDTO = new TempoRealLojaDTO(); |
58 | TempoRealLojaDTO tempoRealLojaDTO = new TempoRealLojaDTO(); |
| 59 | tempoRealLojaDTO.setLojaDTO(lojaAtivaDTO); |
59 | tempoRealLojaDTO.setLojaDTO(lojaAtivaDTO); |
| 60 | 60 | ||
| 61 | ParametrosConsultaVendasDTO parametrosConsultaVendasDTO = new ParametrosConsultaVendasDTO(lojaAtivaDTO.getSequencial(), DataUtils.getDataAtual(), DataUtils.getDataAtual()); |
61 | ParametrosConsultaVendasDTO parametrosConsultaVendasDTO = new ParametrosConsultaVendasDTO(lojaAtivaDTO.getSequencial(), DataUtils.getDataAtual(), DataUtils.getDataAtual()); |
| 62 | tempoRealLojaDTO.setValorVendasNoDia(vendaService.obterValorTotalBrutoDeVendas(parametrosConsultaVendasDTO)); |
- | |
| - | 62 | tempoRealLojaDTO.setValorVendasNoDia(vendaService.obterValorTotalBrutoDeVendasRetirandoValorCuponsUtilizados(parametrosConsultaVendasDTO)); |
|
| 63 | tempoRealLojaDTO.setQuantidadeVendasNoDia(vendaService.obterQuantidadeDeVendasPorLojaEePeriodo(lojaAtivaDTO.getSequencial(), DataUtils.getDataAtual(), DataUtils.getDataAtual())); |
63 | tempoRealLojaDTO.setQuantidadeVendasNoDia(vendaService.obterQuantidadeDeVendasPorLojaEePeriodo(lojaAtivaDTO.getSequencial(), DataUtils.getDataAtual(), DataUtils.getDataAtual())); |
| 64 | tempoRealLojaDTO.setValorVendasNoMes(vendaService.obterValorTotalBrutoDeVendas(new ParametrosConsultaVendasDTO(lojaAtivaDTO.getSequencial(), DataUtils.getPrimeiroDiaDoMesAtual(), DataUtils.getUltimoDiaDoMesAtual()))); |
- | |
| - | 64 | tempoRealLojaDTO.setValorVendasNoMes(vendaService.obterValorTotalBrutoDeVendasRetirandoValorCuponsUtilizados(new ParametrosConsultaVendasDTO(lojaAtivaDTO.getSequencial(), DataUtils.getPrimeiroDiaDoMesAtual(), DataUtils.getUltimoDiaDoMesAtual()))); |
|
| 65 | tempoRealLojaDTO.setValorMetaMensal(avaliacaoLojaService.consultarValorMetaMensalLojaPelaData(lojaAtivaDTO.getSequencial(), DataUtils.getDataAtual())); |
65 | tempoRealLojaDTO.setValorMetaMensal(avaliacaoLojaService.consultarValorMetaMensalLojaPelaData(lojaAtivaDTO.getSequencial(), DataUtils.getDataAtual())); |
| 66 | tempoRealLojaDTO.setPercentualRealizadoMetaMensal(VerificadorUtil.naoEstaNulo(tempoRealLojaDTO.getValorMetaMensal())? tempoRealLojaDTO.getValorVendasNoMes()/tempoRealLojaDTO.getValorMetaMensal() : 0.0); |
66 | tempoRealLojaDTO.setPercentualRealizadoMetaMensal(VerificadorUtil.naoEstaNulo(tempoRealLojaDTO.getValorMetaMensal())? tempoRealLojaDTO.getValorVendasNoMes()/tempoRealLojaDTO.getValorMetaMensal() : 0.0); |
| 67 | 67 | ||
| 68 | tempoRealLojaDTO.setLojaAberta(aberturaLojaService.verificarLojaAberta(DataUtils.getDataAtual(), lojaAtivaDTO.getSequencial())); |
68 | tempoRealLojaDTO.setLojaAberta(aberturaLojaService.verificarLojaAberta(DataUtils.getDataAtual(), lojaAtivaDTO.getSequencial())); |
| 69 | tempoRealLojaDTO.setLojaComVendasNovas(vendaService.obterQuantidadeDeVendasNovasPorLojaEePeriodo(lojaAtivaDTO.getSequencial(), DataUtils.getDataAtual(), DataUtils.getDataAtual()) > 0); |
69 | tempoRealLojaDTO.setLojaComVendasNovas(vendaService.obterQuantidadeDeVendasNovasPorLojaEePeriodo(lojaAtivaDTO.getSequencial(), DataUtils.getDataAtual(), DataUtils.getDataAtual()) > 0); |