app/Controller/ClienteController.php 1 location
|
@@ 136-140 (lines=5) @@
|
| 133 |
|
|
| 134 |
|
$vendas[$i]['LancamentoVenda'] = $lancamento['LancamentoVenda']; |
| 135 |
|
|
| 136 |
|
if ($lancamento['LancamentoVenda']['valor'] == $lancamento['LancamentoVenda']['valor_pago']) { |
| 137 |
|
$total += $lancamento['LancamentoVenda']['valor_pago']; |
| 138 |
|
} else { |
| 139 |
|
$devendo += $lancamento['LancamentoVenda']['valor']; |
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
$cliente = $this->Cliente->find('first', array( |
app/Controller/FinanceiroController.php 1 location
|
@@ 49-51 (lines=3) @@
|
| 46 |
|
$lancamentos[$i]['Categoria'] = isset($categoria['LancamentoCategoria']) ? $categoria['LancamentoCategoria'] : array(); |
| 47 |
|
|
| 48 |
|
if (empty($categoria) || $categoria['LancamentoCategoria']['tipo'] == "receita") { |
| 49 |
|
if ($lancamento['LancamentoVenda']['valor'] > $lancamento['LancamentoVenda']['valor_pago']) { |
| 50 |
|
$a_receber += $lancamento['LancamentoVenda']['valor'] - $lancamento['LancamentoVenda']['valor_pago']; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if ($lancamento['LancamentoVenda']['valor'] >= $lancamento['LancamentoVenda']['valor_pago']) { |
| 54 |
|
$total_entradas += $lancamento['LancamentoVenda']['valor']; |