From 565a508e55dad966f06ba85fd454dcbc1ceeedaf Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Mon, 4 Aug 2025 18:27:50 -0300 Subject: [PATCH] Debug --- .../companies_budgets/companies_budgets_financial_entries.php | 1 + vendor/model/FinancialEntries.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor/action/companies_budgets/companies_budgets_financial_entries.php b/vendor/action/companies_budgets/companies_budgets_financial_entries.php index 9653918..46e9d8f 100644 --- a/vendor/action/companies_budgets/companies_budgets_financial_entries.php +++ b/vendor/action/companies_budgets/companies_budgets_financial_entries.php @@ -21,6 +21,7 @@ try{ /** Parametros de entrada */ $companiesBudgetsId = isset($_POST['companies_budgets_id']) ? (int)filter_input(INPUT_POST,'companies_budgets_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0; + $companyId = $_SESSION['USERSCOMPANYID']; /** Controles */ $movementDateScheduled = null; diff --git a/vendor/model/FinancialEntries.class.php b/vendor/model/FinancialEntries.class.php index e514ee7..b5b7069 100644 --- a/vendor/model/FinancialEntries.class.php +++ b/vendor/model/FinancialEntries.class.php @@ -335,7 +335,7 @@ class FinancialEntries /** Preencho os parĂ¢metros do SQL */ $this->stmt->bindParam('financial_entries_id', $this->financialEntriesId); - $this->stmt->bindParam('company_id', $this->companyId); + echo $this->stmt->bindParam('company_id', $this->companyId); $this->stmt->bindParam('financial_accounts_id', $this->financialAccountsId); $this->stmt->bindParam('financial_categories_id', $this->financialCategoriesId); $this->stmt->bindParam('description', $this->description);