| @@ 613-622 (lines=10) @@ | ||
| 610 | return $response; |
|
| 611 | } |
|
| 612 | ||
| 613 | public function calcularTotalCustoProdutosPeriodo($vendas) |
|
| 614 | { |
|
| 615 | $valor = 0.00; |
|
| 616 | ||
| 617 | foreach ($vendas as $i => $venda) { |
|
| 618 | $valor += $venda['Venda']['custo']; |
|
| 619 | } |
|
| 620 | ||
| 621 | return $valor; |
|
| 622 | } |
|
| 623 | ||
| 624 | public function calcularValorTotalVendas($vendas) |
|
| 625 | { |
|
| @@ 624-633 (lines=10) @@ | ||
| 621 | return $valor; |
|
| 622 | } |
|
| 623 | ||
| 624 | public function calcularValorTotalVendas($vendas) |
|
| 625 | { |
|
| 626 | $valor = 0.00; |
|
| 627 | ||
| 628 | foreach ($vendas as $i => $venda) { |
|
| 629 | $valor += $venda['Venda']['valor']; |
|
| 630 | } |
|
| 631 | ||
| 632 | return $valor; |
|
| 633 | } |
|
| 634 | ||
| 635 | } |
|
| 636 | ||