Skip to content

Commit

Permalink
Fix-Financeiro
Browse files Browse the repository at this point in the history
erro quando filtrava por data resolvido
  • Loading branch information
Fesantt committed Sep 17, 2023
1 parent 0d00654 commit 9d3a486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/Financeiro.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function lancamentos()
$periodo = $this->input->get('periodo');

if (!empty($vencimento_de)) {
$date = DateTime::createFromFormat('d/m/Y', $vencimento_de)->format('Y-m-d');
$date = DateTime::createFromFormat('d/m/Y', $vencimento_de);

if (empty($where)) {
$where = "data_vencimento >= '$date'";
Expand Down Expand Up @@ -315,7 +315,7 @@ public function adicionarReceita_parc()
'valor_desconto' => $entrada,
'tipo_desconto' => 'real',
'data_vencimento' => $dia_pgto,
'data_pagamento' => $dia_pgto != null ? $dia_pgto : date_format($myDateTime, "Y-m-d"),
'data_pagamento' => $dia_pgto != null ? $dia_pgto : date_format("Y-m-d"),
'baixado' => 1,
'cliente_fornecedor' => $this->input->post('cliente_parc'),
'observacoes' => $this->input->post('observacoes_parc'),
Expand Down

0 comments on commit 9d3a486

Please sign in to comment.