Atualizando consolidação

This commit is contained in:
Kenio 2025-08-27 09:00:32 -03:00
parent 80e2e284b0
commit 858a510ec6

View file

@ -759,7 +759,7 @@ class FinancialMovements
} else {
$this->and .= ' and fm.description like concat(\'%\', :description, \'%\')';
$this->and .= ' or c.reference like concat(\'%\', :reference, \'%\')';
$this->and .= ' or c.cns like concat(\'%\', :reference, \'%\')';
$this->and .= ' or c.name_fantasy like concat(\'%\', :fantasy_name, \'%\')';
$this->and .= ' or fm.reference = :movement_reference';
}
@ -815,12 +815,12 @@ class FinancialMovements
if( (int)$this->search > 0 ){
$this->stmt->bindParam('reference', $this->search);
$this->stmt->bindParam('cns', $this->search);
} else {
$this->stmt->bindParam('description', $this->search);
$this->stmt->bindParam('reference', $this->search);
$this->stmt->bindParam('cns', $this->search);
$this->stmt->bindParam('fantasy_name', $this->search);
$this->stmt->bindParam('movement_reference', $this->search);
}
@ -883,7 +883,7 @@ class FinancialMovements
} else {
$this->and .= ' and fm.description like concat(\'%\', :description, \'%\')';
$this->and .= ' or c.reference 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';
}
@ -924,12 +924,12 @@ class FinancialMovements
if( (int)$this->search > 0 ){
$this->stmt->bindParam('reference', $this->search);
$this->stmt->bindParam('cns', $this->search);
} else {
$this->stmt->bindParam('description', $this->search);
$this->stmt->bindParam('reference', $this->search);
$this->stmt->bindParam('cns', $this->search);
$this->stmt->bindParam('fantasy_name', $this->search);
$this->stmt->bindParam('movement_reference', $this->search);
}