Atualizando consolidação

This commit is contained in:
Kenio 2025-08-27 09:13:07 -03:00
parent 858a510ec6
commit fd2cc33948

View file

@ -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 {