Atualizando arquivos
This commit is contained in:
parent
9b5f78680f
commit
a9d934b19e
2 changed files with 31 additions and 28 deletions
|
|
@ -30,21 +30,24 @@ try{
|
|||
$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;
|
||||
$productsId = isset($_POST['products_id']) ? (int)filter_input(INPUT_POST,'products_id', FILTER_SANITIZE_NUMBER_INT) : 0;
|
||||
$productsId = isset($_POST['products_id']) ? (string)filter_input(INPUT_POST,'products_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
|
||||
$description = isset($_POST['description']) ? (string)filter_input(INPUT_POST, 'description', FILTER_SANITIZE_SPECIAL_CHARS) : '';
|
||||
|
||||
echo $productsId;
|
||||
exit;
|
||||
|
||||
/** Validando os campos de entrada */
|
||||
$CompaniesBudgetsValidate->setbudget($budget);
|
||||
$CompaniesBudgetsValidate->setdayDue($dayDue);
|
||||
$CompaniesBudgetsValidate->setreadjustmentYear($readjustmentYear);
|
||||
$CompaniesBudgetsValidate->setreadjustmentMonth($readjustmentMonth);
|
||||
$CompaniesBudgetsValidate->setreadjustmentIndex($readjustmentIndex);
|
||||
$CompaniesBudgetsValidate->setreadjustmentValue($readjustmentValue);
|
||||
$CompaniesBudgetsValidate->setreadjustmentBudget($readjustmentBudget);
|
||||
$CompaniesBudgetsValidate->setreadjustmentType($readjustmentType);
|
||||
$CompaniesBudgetsValidate->setoften($often);
|
||||
$CompaniesBudgetsValidate->setdateStart($dateStart);
|
||||
$CompaniesBudgetsValidate->setcompanyId($companyId);
|
||||
$CompaniesBudgetsValidate->setBudget($budget);
|
||||
$CompaniesBudgetsValidate->setDayDue($dayDue);
|
||||
$CompaniesBudgetsValidate->setReadjustmentYear($readjustmentYear);
|
||||
$CompaniesBudgetsValidate->setReadjustmentMonth($readjustmentMonth);
|
||||
$CompaniesBudgetsValidate->setReadjustmentIndex($readjustmentIndex);
|
||||
$CompaniesBudgetsValidate->setReadjustmentValue($readjustmentValue);
|
||||
$CompaniesBudgetsValidate->setReadjustmentBudget($readjustmentBudget);
|
||||
$CompaniesBudgetsValidate->setReadjustmentType($readjustmentType);
|
||||
$CompaniesBudgetsValidate->setOften($often);
|
||||
$CompaniesBudgetsValidate->setDateStart($dateStart);
|
||||
$CompaniesBudgetsValidate->setCompanyId($companyId);
|
||||
$CompaniesBudgetsValidate->setClientsBudgetsId($clientsBudgetsId);
|
||||
$CompaniesBudgetsValidate->setFinancialCategoriesId($financialCategoriesId);
|
||||
$CompaniesBudgetsValidate->setFinancialAccountsId($financialAccountsId);
|
||||
|
|
@ -65,21 +68,21 @@ try{
|
|||
|
||||
/** Salva as alterações ou cadastra um novo registro */
|
||||
$budgetsId = $CompaniesBudgets->Save($CompaniesBudgetsValidate->getClientsBudgetsId(),
|
||||
$CompaniesBudgetsValidate->getcompanyId(),
|
||||
$CompaniesBudgetsValidate->getBudget(),
|
||||
$CompaniesBudgetsValidate->getDayDue(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentIndex(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentValue(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentBudget(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentType(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentYear(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentMonth(),
|
||||
$CompaniesBudgetsValidate->getOften(),
|
||||
$CompaniesBudgetsValidate->getDateStart(),
|
||||
$CompaniesBudgetsValidate->getDescription(),
|
||||
$CompaniesBudgetsValidate->getFinancialCategoriesId(),
|
||||
$CompaniesBudgetsValidate->getFinancialAccountsId(),
|
||||
$CompaniesBudgetsValidate->getProductsId());
|
||||
$CompaniesBudgetsValidate->getcompanyId(),
|
||||
$CompaniesBudgetsValidate->getBudget(),
|
||||
$CompaniesBudgetsValidate->getDayDue(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentIndex(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentValue(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentBudget(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentType(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentYear(),
|
||||
$CompaniesBudgetsValidate->getReadjustmentMonth(),
|
||||
$CompaniesBudgetsValidate->getOften(),
|
||||
$CompaniesBudgetsValidate->getDateStart(),
|
||||
$CompaniesBudgetsValidate->getDescription(),
|
||||
$CompaniesBudgetsValidate->getFinancialCategoriesId(),
|
||||
$CompaniesBudgetsValidate->getFinancialAccountsId(),
|
||||
$CompaniesBudgetsValidate->getProductsId());
|
||||
|
||||
/** Verifica se ocorreu algum erro na hora de gravar */
|
||||
if(!empty($CompaniesBudgets->getErrors())){
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ class CompaniesBudgetsValidate
|
|||
}
|
||||
|
||||
/** Método trata campo clients_id */
|
||||
public function setClientsId(int $clientsId) : void
|
||||
public function setCompanyId(int $clientsId) : void
|
||||
{
|
||||
|
||||
/** Trata a entrada da informação */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue