| @@ 539-548 (lines=10) @@ | ||
| 536 | return $response; |
|
| 537 | } |
|
| 538 | ||
| 539 | public function calcularTotalCustoProdutosPeriodo($vendas) |
|
| 540 | { |
|
| 541 | $valor = 0.00; |
|
| 542 | ||
| 543 | foreach ($vendas as $i => $venda) { |
|
| 544 | $valor += $venda['Venda']['custo']; |
|
| 545 | } |
|
| 546 | ||
| 547 | return $valor; |
|
| 548 | } |
|
| 549 | ||
| 550 | public function calcularValorTotalVendas($vendas) |
|
| 551 | { |
|
| @@ 550-559 (lines=10) @@ | ||
| 547 | return $valor; |
|
| 548 | } |
|
| 549 | ||
| 550 | public function calcularValorTotalVendas($vendas) |
|
| 551 | { |
|
| 552 | $valor = 0.00; |
|
| 553 | ||
| 554 | foreach ($vendas as $i => $venda) { |
|
| 555 | $valor += $venda['Venda']['valor']; |
|
| 556 | } |
|
| 557 | ||
| 558 | return $valor; |
|
| 559 | } |
|
| 560 | ||
| 561 | } |
|
| 562 | ||