From fd2cc33948f96401d8790226e46ef3d58d1de47e Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Wed, 27 Aug 2025 09:13:07 -0300 Subject: [PATCH] =?UTF-8?q?Atualizando=20consolida=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/model/FinancialMovements.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/model/FinancialMovements.class.php b/vendor/model/FinancialMovements.class.php index 509054f..659de5d 100644 --- a/vendor/model/FinancialMovements.class.php +++ b/vendor/model/FinancialMovements.class.php @@ -754,12 +754,12 @@ class FinancialMovements /** Verifica se é uma consulta por número */ if( (int)$this->search > 0 ){ - $this->and .= ' and c.reference = :reference '; + $this->and .= ' and c.cns = :cns '; } else { $this->and .= ' and fm.description like concat(\'%\', :description, \'%\')'; - $this->and .= ' or c.cns like concat(\'%\', :reference, \'%\')'; + $this->and .= ' or c.cns like concat(\'%\', :cns, \'%\')'; $this->and .= ' or c.name_fantasy like concat(\'%\', :fantasy_name, \'%\')'; $this->and .= ' or fm.reference = :movement_reference'; } @@ -878,7 +878,7 @@ class FinancialMovements /** Verifica se é uma consulta por número */ if( (int)$this->search > 0 ){ - $this->and .= ' and c.reference = :reference '; + $this->and .= ' and c.cns = :cns '; } else {