| @@ 531-540 (lines=10) @@ | ||
| 528 | return $response; |
|
| 529 | } |
|
| 530 | ||
| 531 | public function calcularTotalCustoProdutosPeriodo($vendas) |
|
| 532 | { |
|
| 533 | $valor = 0.00; |
|
| 534 | ||
| 535 | foreach ($vendas as $i => $venda) { |
|
| 536 | $valor += $venda['Venda']['custo']; |
|
| 537 | } |
|
| 538 | ||
| 539 | return $valor; |
|
| 540 | } |
|
| 541 | ||
| 542 | public function calcularValorTotalVendas($vendas) |
|
| 543 | { |
|
| @@ 542-551 (lines=10) @@ | ||
| 539 | return $valor; |
|
| 540 | } |
|
| 541 | ||
| 542 | public function calcularValorTotalVendas($vendas) |
|
| 543 | { |
|
| 544 | $valor = 0.00; |
|
| 545 | ||
| 546 | foreach ($vendas as $i => $venda) { |
|
| 547 | $valor += $venda['Venda']['valor']; |
|
| 548 | } |
|
| 549 | ||
| 550 | return $valor; |
|
| 551 | } |
|
| 552 | ||
| 553 | } |
|
| 554 | ||