Atualizando arquivos
This commit is contained in:
parent
ac40a63c8c
commit
e1315f92de
2 changed files with 6 additions and 6 deletions
|
|
@ -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 = '<script type="text/javascript">';
|
||||
$procedure .= '$(document).ready(function(e) {';
|
||||
$procedure .= ' setTimeout(() => {';
|
||||
$procedure .= ' request(\'FOLDER=view&TABLE=clients_budgets&ACTION=clients_budgets_datagrid&clients_id='.$ClientBudgetsValidate->getClientsId().'\', \'#loadBudgests\', true, \'Carregando orçamentos...\', \'\', \'\', \'Carregando orçamentos\', \'blue\', \'circle\', \'sm\', true);';
|
||||
$procedure .= ' request(\'FOLDER=view&TABLE=clients_budgets&ACTION=clients_budgets_datagrid&company_id='.$ClientBudgetsValidate->getcompanyId().'\', \'#loadBudgests\', true, \'Carregando orçamentos...\', \'\', \'\', \'Carregando orçamentos\', \'blue\', \'circle\', \'sm\', true);';
|
||||
$procedure .= ' }, "2000");';
|
||||
$procedure .= '});';
|
||||
$procedure .= '</script>';
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ try{
|
|||
|
||||
?>
|
||||
|
||||
<tr onclick="prepareBudget('#id-<?php echo $i;?>', 'products', <?php echo $i;?>, 0)" id="id-<?php echo $i;?>">
|
||||
<tr onclick="prepareBudget('#id-<?php echo $i;?>', 'products', '<?php echo $Result->product_company_ids;?>', 0)" id="id-<?php echo $i;?>">
|
||||
<td class="text-center"><input type="checkbox" id="group" name="group" value="S" checked=true></td>
|
||||
<td><?php echo $Result->products;?></td>
|
||||
<td class="text-center" width="65"><?php echo $Result->reference;?></td>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue