Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->data['produtos'] = $this->eventos_model->getProdutos($this->uri->segment(3));
- $this->data['servicos'] = $this->eventos_model->getServicos($this->uri->segment(3));
- $totalProduto = 0;
- $totalServico = 0;
- foreach ($this->data['produtos'] as $key => $value) {
- $totalProduto += $value->valorLiquido;
- }
- foreach ($this->data['servicos'] as $key => $value) {
- $totalServico += $value->valorLiquido;
- }
- $total = $totalProduto + $totalServico;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement