API FOR DEACTIVE FORMS
This commit is contained in:
parent
ea8097c9be
commit
fd160998c6
@ -236,6 +236,7 @@ $route['getFinalPDReportQuestions'] = 'PD_Controller/getFinalPDReportQuestions';
|
||||
$route['getTypeOfActivetyFromBusinessForm'] = 'PD_Controller/getTypeOfActivetyFromBusinessJSON';
|
||||
$route['getCompaniesListsForBusiness'] = 'PD_Controller/getCompaniesListsFromGeneralFormRawJSON';
|
||||
$route['getPDImages'] = 'PD_Controller/getPDImages';
|
||||
$route['deactiveFormData'] = 'PD_Controller/deactiveFormData';
|
||||
//$route['getTypeOfActivetyFromBusinessJSON'] = 'PD_Controller/getTypeOfActivetyFromBusinessJSON';
|
||||
|
||||
//Dashboard and Reports Related routes
|
||||
|
||||
@ -9082,4 +9082,39 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function deactiveFormData_get()
|
||||
{
|
||||
//$records = $this->post('records');
|
||||
$pd_form_detail_json_id = $this->get('jid');
|
||||
|
||||
if(is_numeric($pd_form_detail_json_id))
|
||||
{
|
||||
$id = $this->PD_Model->updateRecords(array('isactive' => 0),PDFORMDETAILSJSON,array('pd_form_detail_json_id' => $pd_form_detail_json_id));
|
||||
if($id)
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['records'] = $id;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NOT_MODIFIED;
|
||||
$data['msg'] = 'Something went wrong..! Try Later...!';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NOT_FOUND;
|
||||
$data['msg'] = 'Wrong Call...!';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1985,7 +1985,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo $value['fourth_row'];
|
||||
echo $value['fifth_row'];
|
||||
echo $value['sixth_row'];
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] == 'LAEP')
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] != 'LAEP')
|
||||
{
|
||||
echo $value['seventh_row'];
|
||||
echo $value['eighth_row'];
|
||||
@ -2654,7 +2654,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php echo $client_fourth_row?>
|
||||
|
||||
<?php
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] == 'LAEP')
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] != 'LAEP')
|
||||
{
|
||||
?>
|
||||
<?php echo $client_fifth_row?>
|
||||
@ -2939,7 +2939,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo $supplier_third_row;
|
||||
echo $supplier_fourth_row;
|
||||
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] == 'LAEP')
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] != 'LAEP')
|
||||
{
|
||||
|
||||
echo $supplier_fifth_row;
|
||||
@ -3704,7 +3704,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<th>Asset Owned By</th>
|
||||
<th>Approx Market Value(Rs)</th>
|
||||
<?php
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] == 'LAEP')
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] != 'LAEP')
|
||||
{
|
||||
?>
|
||||
<th>Age of the Assest(Yrs)</th>
|
||||
@ -3722,7 +3722,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class="customtd"><?php echo $paRow['name_of_the_owner']; ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']); ?></td>
|
||||
<?php
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] == 'LAEP')
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] != 'LAEP')
|
||||
{
|
||||
?>
|
||||
<td class="customtd"><?php echo $paRow['purchase_year'] ? $paRow['purchase_year'] : 'NA'; ?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user