Atualizando
This commit is contained in:
parent
6c9dc18bd5
commit
31b84e4859
1 changed files with 7 additions and 7 deletions
14
vendor/model/Documents.class.php
vendored
14
vendor/model/Documents.class.php
vendored
|
|
@ -140,7 +140,7 @@ class Documents
|
|||
$this->sql = 'select d.documents_id,
|
||||
d.documents_drafts_id,
|
||||
d.documents_categorys_id,
|
||||
d.users_id,
|
||||
d.user_id,
|
||||
d.company_id,
|
||||
d.description,
|
||||
d.date_register,
|
||||
|
|
@ -261,7 +261,7 @@ class Documents
|
|||
}elseif($this->financialMovementsId > 0){
|
||||
|
||||
/** Consulta SQL */
|
||||
$this->sql = 'insert into documents(users_id,
|
||||
$this->sql = 'insert into documents(user_id,
|
||||
company_id,
|
||||
clients_id,
|
||||
description,
|
||||
|
|
@ -269,7 +269,7 @@ class Documents
|
|||
extension,
|
||||
financial_movements_id,
|
||||
tag
|
||||
) values (:users_id,
|
||||
) values (:user_id,
|
||||
:company_id,
|
||||
:clients_id,
|
||||
:description,
|
||||
|
|
@ -282,7 +282,7 @@ class Documents
|
|||
$this->stmt = $this->connection->connect()->prepare($this->sql);
|
||||
|
||||
/** Preencho os parâmetros do SQL */
|
||||
$this->stmt->bindParam('users_id', $_SESSION['USERSID']);/** Informa o usuário responsável pelo novo arquivo cadastrado */
|
||||
$this->stmt->bindParam('user_id', $_SESSION['USERSID']);/** Informa o usuário responsável pelo novo arquivo cadastrado */
|
||||
$this->stmt->bindParam('company_id', $_SESSION['USERSCOMPANYID']);/** Grava o ID da empresa responsável pelo arquivo */
|
||||
$this->stmt->bindParam('description', $this->description);
|
||||
$this->stmt->bindParam('archive', $this->archive);
|
||||
|
|
@ -296,7 +296,7 @@ class Documents
|
|||
/** Consulta SQL */
|
||||
$this->sql = 'insert into documents(documents_id,
|
||||
documents_categorys_id,
|
||||
users_id,
|
||||
user_id,
|
||||
company_id,
|
||||
clients_id,
|
||||
description,
|
||||
|
|
@ -306,7 +306,7 @@ class Documents
|
|||
financial_movements_id
|
||||
) values (:documents_id,
|
||||
:documents_categorys_id,
|
||||
:users_id,
|
||||
:user_id,
|
||||
:company_id,
|
||||
:clients_id,
|
||||
:description,
|
||||
|
|
@ -321,7 +321,7 @@ class Documents
|
|||
/** Preencho os parâmetros do SQL */
|
||||
$this->stmt->bindParam('documents_id', $this->documentsId);
|
||||
$this->stmt->bindParam('documents_categorys_id', $this->documentsCategorysId);
|
||||
$this->stmt->bindParam('users_id', $_SESSION['USERSID']);/** Informa o usuário responsável pelo novo arquivo cadastrado */
|
||||
$this->stmt->bindParam('user_id', $_SESSION['USERSID']);/** Informa o usuário responsável pelo novo arquivo cadastrado */
|
||||
$this->stmt->bindParam('company_id', $_SESSION['USERSCOMPANYID']);/** Grava o ID da empresa responsável pelo arquivo */
|
||||
$this->stmt->bindParam('clients_id', $this->companyId);
|
||||
$this->stmt->bindParam('description', $this->description);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue