From b55d1c1186c59b038d84d84c4a830eb1bd4e5040 Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Mon, 22 Sep 2025 12:43:19 -0300 Subject: [PATCH] Debug --- .../financial_movements/financial_movements_save_file.php | 4 ---- vendor/model/Documents.class.php | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/vendor/action/financial_movements/financial_movements_save_file.php b/vendor/action/financial_movements/financial_movements_save_file.php index c4aea41..ce6033e 100644 --- a/vendor/action/financial_movements/financial_movements_save_file.php +++ b/vendor/action/financial_movements/financial_movements_save_file.php @@ -25,10 +25,6 @@ try{ $FinancialMovementsValidate->setPath($path); $FinancialMovementsValidate->setDocumentsCategorysId($documentsCategorysId); - - echo $FinancialMovementsValidate->getDocumentsCategorysId(); - exit; - /** Verifica se não existem erros a serem informados */ if (!empty($FinancialMovementsValidate->getErrors())) { diff --git a/vendor/model/Documents.class.php b/vendor/model/Documents.class.php index 2406e05..f07caa3 100644 --- a/vendor/model/Documents.class.php +++ b/vendor/model/Documents.class.php @@ -273,6 +273,7 @@ class Documents /** Consulta SQL */ $this->sql = 'insert into documents(user_id, company_id, + documents_categorys_id, description, archive, extension, @@ -280,6 +281,7 @@ class Documents tag ) values (:user_id, :company_id, + :documents_categorys_id, :description, :archive, :extension, @@ -292,6 +294,7 @@ class Documents /** Preencho os parâmetros do SQL */ $this->stmt->bindParam('user_id', $_SESSION['USERSID']);/** Informa o usuário responsável pelo novo arquivo cadastrado */ $this->stmt->bindParam('company_id', $this->companyId); + $this->stmt->bindParam('documents_categorys_id', $this->documentsCategorysId); $this->stmt->bindParam('description', $this->description); $this->stmt->bindParam('archive', $this->archive); $this->stmt->bindParam('extension', $this->extension);