| @@ 624-633 (lines=10) @@ | ||
| 621 | return $response; |
|
| 622 | } |
|
| 623 | ||
| 624 | public function calcularTotalCustoProdutosPeriodo($vendas) |
|
| 625 | { |
|
| 626 | $valor = 0.00; |
|
| 627 | ||
| 628 | foreach ($vendas as $i => $venda) { |
|
| 629 | $valor += $venda['Venda']['custo']; |
|
| 630 | } |
|
| 631 | ||
| 632 | return $valor; |
|
| 633 | } |
|
| 634 | ||
| 635 | public function calcularValorTotalVendas($vendas) |
|
| 636 | { |
|
| @@ 635-644 (lines=10) @@ | ||
| 632 | return $valor; |
|
| 633 | } |
|
| 634 | ||
| 635 | public function calcularValorTotalVendas($vendas) |
|
| 636 | { |
|
| 637 | $valor = 0.00; |
|
| 638 | ||
| 639 | foreach ($vendas as $i => $venda) { |
|
| 640 | $valor += $venda['Venda']['valor']; |
|
| 641 | } |
|
| 642 | ||
| 643 | return $valor; |
|
| 644 | } |
|
| 645 | ||
| 646 | } |
|
| 647 | ||