Atualizando consolidação
This commit is contained in:
parent
858a510ec6
commit
fd2cc33948
1 changed files with 3 additions and 3 deletions
6
vendor/model/FinancialMovements.class.php
vendored
6
vendor/model/FinancialMovements.class.php
vendored
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue