This commit is contained in:
Kenio 2025-08-01 18:15:19 -03:00
parent 9c080e238a
commit f7ebd661e7

View file

@ -208,13 +208,13 @@ class FinancialCategories
/** Consulta SQL */
$this->sql = 'insert into financial_categories(company_id,
users_id,
user_id,
description,
active,
type,
reference
) values (:company_id,
:users_id,
:user_id,
:description,
:active,
:type,
@ -224,7 +224,7 @@ class FinancialCategories
$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 cliente cadastrado */
$this->stmt->bindParam('user_id', $_SESSION['USERSID']);/** Informa o usuário responsável pelo novo cliente cadastrado */
$this->stmt->bindParam('company_id', $_SESSION['USERSCOMPANYID']);/** Informa a qual empresa pertence o cliente */
$this->stmt->bindParam('description', $this->description);
$this->stmt->bindParam('active', $this->active);