diff --git a/vendor/action/companies_budgets/companies_budgets_delete.php b/vendor/action/companies_budgets/companies_budgets_delete.php
index 35c74af..389bfc1 100644
--- a/vendor/action/companies_budgets/companies_budgets_delete.php
+++ b/vendor/action/companies_budgets/companies_budgets_delete.php
@@ -1,8 +1,8 @@
verifyToken()){
/** Instânciamento de classes */
- $ClientBudgets = new ClientBudgets();
- $ClientBudgetsValidate = new ClientBudgetsValidate();
+ $CompaniesBudgets = new CompaniesBudgets();
+ $CompaniesBudgetsValidate = new CompaniesBudgetsValidate();
/** Parametros de entrada */
- $clientBudgetsId = isset($_POST['client_budgets_id']) ? (int)filter_input(INPUT_POST,'client_budgets_id', FILTER_SANITIZE_NUMBER_INT) : 0;
- $clientsId = isset($_POST['clients_id']) ? (int)filter_input(INPUT_POST, 'clients_id', FILTER_SANITIZE_NUMBER_INT) : 0;
+ $CompaniesBudgetsId = isset($_POST['companies_budgets_id']) ? (int)filter_input(INPUT_POST,'companies_budgets_id', FILTER_SANITIZE_NUMBER_INT) : 0;
+ $companiesId = isset($_POST['company_id']) ? (int)filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_NUMBER_INT) : 0;
/** Validando os campos de entrada */
- $ClientBudgetsValidate->setClientsBudgetsId($clientBudgetsId);
- $ClientBudgetsValidate->setClientsId($clientsId);
+ $CompaniesBudgetsValidate->setCompaniesBudgetsId($CompaniesBudgetsId);
+ $CompaniesBudgetsValidate->setCompanyId($companiesId);
/** Verifico a existência de erros */
- if (!empty($ClientBudgetsValidate->getErrors())) {
+ if (!empty($CompaniesBudgetsValidate->getErrors())) {
/** Informo */
- throw new InvalidArgumentException($ClientBudgetsValidate->getErrors(), 0);
+ throw new InvalidArgumentException($CompaniesBudgetsValidate->getErrors(), 0);
} else {
/** Salva as alterações ou cadastra um novo registro */
- if($ClientBudgets->Delete($ClientBudgetsValidate->getClientsBudgetsId())){
+ if($CompaniesBudgets->Delete($CompaniesBudgetsValidate->getClientsBudgetsId())){
$procedure = '';
diff --git a/vendor/action/companies_budgets/companies_budgets_save.php b/vendor/action/companies_budgets/companies_budgets_save.php
index a5f6a15..5d06f1c 100644
--- a/vendor/action/companies_budgets/companies_budgets_save.php
+++ b/vendor/action/companies_budgets/companies_budgets_save.php
@@ -103,7 +103,7 @@ try{
for($i=0; $i < count($itens); $i++){
/** Atualiza o valor do produto do orçamento */
- $ProductsCompanies->UpdateValueProduct($CompaniesBudgetsValidate->getcompanyId(),
+ $ProductsCompanies->UpdateValueProduct($CompaniesBudgetsValidate->getCompanyId(),
$itens[$i],
$CompaniesBudgetsValidate->getReadjustmentBudget()/(count($itens)));
}
@@ -111,7 +111,7 @@ try{
}else {
/** Atualiza o valor do produto do orçamento */
- $ProductsCompanies->UpdateValueProduct($CompaniesBudgetsValidate->getcompanyId(),
+ $ProductsCompanies->UpdateValueProduct($CompaniesBudgetsValidate->getCompanyId(),
$itens[0],
$CompaniesBudgetsValidate->getReadjustmentBudget());
}
@@ -120,7 +120,7 @@ try{
$procedure = '';