diff --git a/vendor/model/FinancialMovements.class.php b/vendor/model/FinancialMovements.class.php index 791d11e..509054f 100644 --- a/vendor/model/FinancialMovements.class.php +++ b/vendor/model/FinancialMovements.class.php @@ -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); }