diff --git a/vendor/model/FinancialCategories.class.php b/vendor/model/FinancialCategories.class.php index daf700c..9c6316f 100644 --- a/vendor/model/FinancialCategories.class.php +++ b/vendor/model/FinancialCategories.class.php @@ -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);