diff --git a/vendor/model/CompaniesBudgets.class.php b/vendor/model/CompaniesBudgets.class.php index a5aec34..b3ea9c2 100644 --- a/vendor/model/CompaniesBudgets.class.php +++ b/vendor/model/CompaniesBudgets.class.php @@ -118,6 +118,7 @@ class CompaniesBudgets cb.often, cb.date_start, cb.description, + cb.products_id, c.name_fantasy from companies_budgets cb left join companies c on cb.company_id = c.company_id diff --git a/vendor/view/companies_budgets/companies_budgets_form.php b/vendor/view/companies_budgets/companies_budgets_form.php index 269f682..592a459 100644 --- a/vendor/view/companies_budgets/companies_budgets_form.php +++ b/vendor/view/companies_budgets/companies_budgets_form.php @@ -20,7 +20,7 @@ try{ $FinancialReadjustments = new FinancialReadjustments(); /** Parametros de entrada */ - echo $companyId = isset($_POST['company_id']) ? (int)filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0; + $companyId = isset($_POST['company_id']) ? (int)filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0; $companiesBudgetsId = isset($_POST['companies_budgets_id']) ? (int)filter_input(INPUT_POST, 'companies_budgets_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0; /** Verifica se o ID do projeto foi informado */