This commit is contained in:
Kenio 2025-08-01 18:33:21 -03:00
parent f7ebd661e7
commit 0dfb068d92

View file

@ -207,14 +207,12 @@ class FinancialCategories
}else{//Se o ID não foi informado, grava-se um novo registro
/** Consulta SQL */
$this->sql = 'insert into financial_categories(company_id,
user_id,
$this->sql = 'insert into financial_categories(user_id,
description,
active,
type,
reference
) values (:company_id,
:user_id,
) values (:user_id,
:description,
:active,
:type,
@ -225,7 +223,6 @@ class FinancialCategories
/** Preencho os parâmetros do SQL */
$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);
$this->stmt->bindParam('type', $this->type);