diff --git a/vendor/action/companies_budgets/companies_budgets_save.php b/vendor/action/companies_budgets/companies_budgets_save.php index a58afab..3cfc4ed 100644 --- a/vendor/action/companies_budgets/companies_budgets_save.php +++ b/vendor/action/companies_budgets/companies_budgets_save.php @@ -26,7 +26,7 @@ try{ $readjustmentType = isset($_POST['readjustment_type']) ? (int)filter_input(INPUT_POST, 'readjustment_type', FILTER_SANITIZE_NUMBER_INT) : 0; $often = isset($_POST['often']) ? (int)filter_input(INPUT_POST, 'often', FILTER_SANITIZE_NUMBER_INT) : 0; $dateStart = isset($_POST['date_start']) ? (string)filter_input(INPUT_POST, 'date_start', FILTER_SANITIZE_SPECIAL_CHARS) : ''; - $clientsId = isset($_POST['clients_id']) ? (int)filter_input(INPUT_POST, 'clients_id', FILTER_SANITIZE_NUMBER_INT) : 0; + $companyId = isset($_POST['company_id']) ? (int)filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_NUMBER_INT) : 0; $clientsBudgetsId = isset($_POST['clients_budgets_id']) ? (int)filter_input(INPUT_POST,'clients_budgets_id', FILTER_SANITIZE_NUMBER_INT) : 0; $financialCategoriesId = isset($_POST['financial_categories_id']) ? (int)filter_input(INPUT_POST,'financial_categories_id', FILTER_SANITIZE_NUMBER_INT) : 0; $financialAccountsId = isset($_POST['financial_accounts_id']) ? (int)filter_input(INPUT_POST,'financial_accounts_id', FILTER_SANITIZE_NUMBER_INT) : 0; @@ -44,7 +44,7 @@ try{ $ClientBudgetsValidate->setreadjustmentType($readjustmentType); $ClientBudgetsValidate->setoften($often); $ClientBudgetsValidate->setdateStart($dateStart); - $ClientBudgetsValidate->setclientsId($clientsId); + $ClientBudgetsValidate->setcompanyId($companyId); $ClientBudgetsValidate->setClientsBudgetsId($clientsBudgetsId); $ClientBudgetsValidate->setFinancialCategoriesId($financialCategoriesId); $ClientBudgetsValidate->setFinancialAccountsId($financialAccountsId); @@ -65,7 +65,7 @@ try{ /** Salva as alterações ou cadastra um novo registro */ $budgetsId = $ClientBudgets->Save($ClientBudgetsValidate->getClientsBudgetsId(), - $ClientBudgetsValidate->getClientsId(), + $ClientBudgetsValidate->getcompanyId(), $ClientBudgetsValidate->getBudget(), $ClientBudgetsValidate->getDayDue(), $ClientBudgetsValidate->getReadjustmentIndex(), @@ -94,13 +94,13 @@ try{ if($budgetsId > 0){ /** Atualiza o valor do produto do orçamento */ - $ClientProducts->UpdateValueProduct($ClientBudgetsValidate->getClientsId(), $ClientBudgetsValidate->getProductsId(), $ClientBudgetsValidate->getReadjustmentBudget()); + $ClientProducts->UpdateValueProduct($ClientBudgetsValidate->getcompanyId(), $ClientBudgetsValidate->getProductsId(), $ClientBudgetsValidate->getReadjustmentBudget()); /** Prepara o retorno */ $procedure = ''; diff --git a/vendor/view/products_companies/products_companies_datagrid.php b/vendor/view/products_companies/products_companies_datagrid.php index 3aecfa2..3dafd04 100644 --- a/vendor/view/products_companies/products_companies_datagrid.php +++ b/vendor/view/products_companies/products_companies_datagrid.php @@ -64,7 +64,7 @@ try{ ?> -