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