Atualizando abas documentos
This commit is contained in:
parent
437deaa0a2
commit
695576b2c3
1 changed files with 3 additions and 3 deletions
6
vendor/model/Documents.class.php
vendored
6
vendor/model/Documents.class.php
vendored
|
|
@ -133,11 +133,11 @@ class Documents
|
|||
/** Se houver um cliente informado, crio o filtro de consulta */
|
||||
if($this->companyId === true){
|
||||
|
||||
$this->and = " and company_id is not null";
|
||||
$this->and = " and d.company_id is not null";
|
||||
|
||||
} elseif ($this->companyId === false) {
|
||||
|
||||
$this->and = " and company_id is null";
|
||||
$this->and = " and d.company_id is null";
|
||||
}
|
||||
|
||||
/** Consulta SQL */
|
||||
|
|
@ -203,7 +203,7 @@ class Documents
|
|||
}
|
||||
|
||||
/** Consulta SQL */
|
||||
echo $this->sql = 'select count(documents_id) as qtde
|
||||
$this->sql = 'select count(documents_id) as qtde
|
||||
from documents
|
||||
where documents_id is not null
|
||||
'.$this->and;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue