Commit 841109f57c19bd6255ccb3103e0057a58971dd85
1 parent
99658c82
Exists in
master
and in
1 other branch
Acrescentar total de máquinas no final dos relatório
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/Cacic/RelatorioBundle/Controller/FaturamentoController.php
@@ -47,8 +47,10 @@ | @@ -47,8 +47,10 @@ | ||
47 | $logs = $this->getDoctrine()->getRepository( 'CacicCommonBundle:LogAcesso') | 47 | $logs = $this->getDoctrine()->getRepository( 'CacicCommonBundle:LogAcesso') |
48 | ->pesquisar( $data['dtAcaoInicio'], $data['dtAcaoFim'], $filtroLocais); | 48 | ->pesquisar( $data['dtAcaoInicio'], $data['dtAcaoFim'], $filtroLocais); |
49 | 49 | ||
50 | + $TotalnumComp = 0; | ||
51 | + | ||
50 | foreach ($logs as $cont ){ | 52 | foreach ($logs as $cont ){ |
51 | - $TotalnumComp = $cont['numComp']; | 53 | + $TotalnumComp = $TotalnumComp+$cont['numComp']; |
52 | } | 54 | } |
53 | 55 | ||
54 | } | 56 | } |
@@ -161,6 +163,8 @@ | @@ -161,6 +163,8 @@ | ||
161 | $logs = $this->getDoctrine()->getRepository( 'CacicCommonBundle:Computador') | 163 | $logs = $this->getDoctrine()->getRepository( 'CacicCommonBundle:Computador') |
162 | ->pesquisarInativos( $data['dtAcaoInicio'], $data['dtAcaoFim'], $filtroLocais); | 164 | ->pesquisarInativos( $data['dtAcaoInicio'], $data['dtAcaoFim'], $filtroLocais); |
163 | 165 | ||
166 | + $TotalnumComp = 0; | ||
167 | + | ||
164 | foreach ($logs as $cont ){ | 168 | foreach ($logs as $cont ){ |
165 | $TotalnumComp = $cont['numComp']; | 169 | $TotalnumComp = $cont['numComp']; |
166 | } | 170 | } |