Atualizando abas documentos

This commit is contained in:
Kenio 2025-08-21 21:04:20 -03:00
parent 437deaa0a2
commit 695576b2c3

View file

@ -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;