QC LENDER REMARKS
This commit is contained in:
parent
b0aca40a5b
commit
c7d4aeb0b8
@ -173,6 +173,7 @@ $route['saveNewVersionOfPDReport'] = 'PD_Controller/saveNewVersionOfPDReport';
|
|||||||
$route['getListOfPDReportVersions'] = 'PD_Controller/getListOfPDReportVersions';
|
$route['getListOfPDReportVersions'] = 'PD_Controller/getListOfPDReportVersions';
|
||||||
$route['swapOlderPDReportToLatest'] = 'PD_Controller/swapOlderPDReporttoLatest';
|
$route['swapOlderPDReportToLatest'] = 'PD_Controller/swapOlderPDReporttoLatest';
|
||||||
$route['filterPDList'] = 'PD_Controller/filterPDList';
|
$route['filterPDList'] = 'PD_Controller/filterPDList';
|
||||||
|
$route['getQCLenderRemarks'] = 'PD_Controller/getQCLenderRemarks';
|
||||||
|
|
||||||
$route['smartyTestFunction'] = 'PD_Controller/smartyTestFunction';
|
$route['smartyTestFunction'] = 'PD_Controller/smartyTestFunction';
|
||||||
$route['codeigniterViewTest'] = 'PD_Controller/codeigniterViewTest';
|
$route['codeigniterViewTest'] = 'PD_Controller/codeigniterViewTest';
|
||||||
|
|||||||
@ -1861,8 +1861,13 @@ class PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
if(!is_array($record))//check key and value pair is not an array
|
if(!is_array($record))//check key and value pair is not an array
|
||||||
{
|
{
|
||||||
|
if($rec_key == 'selected_person')
|
||||||
|
{
|
||||||
|
echo "selected_person-".$record;
|
||||||
|
}
|
||||||
$temp_array = array('fk_pd_id'=>$pd_id,'fk_form_id'=>$pd_form_id,'column_name'=>$rec_key,'column_value'=>$record,'fk_createdby'=>$fk_createdby);
|
$temp_array = array('fk_pd_id'=>$pd_id,'fk_form_id'=>$pd_form_id,'column_name'=>$rec_key,'column_value'=>$record,'fk_createdby'=>$fk_createdby);
|
||||||
$id = $this->PD_Model->saveRecords($temp_array,PDFORMDETAILS);
|
$id = $this->PD_Model->saveRecords($temp_array,PDFORMDETAILS);
|
||||||
|
|
||||||
}
|
}
|
||||||
else // array of key value pairs
|
else // array of key value pairs
|
||||||
{
|
{
|
||||||
@ -3059,7 +3064,7 @@ class PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
$data['dataStatus'] = true;
|
$data['dataStatus'] = true;
|
||||||
$data['status'] = REST_Controller::HTTP_OK;
|
$data['status'] = REST_Controller::HTTP_OK;
|
||||||
$data['records'] = $urls;
|
$data['records'] = array('pdstatus' => $pd_master_details[0]['pd_status'],'reports_urls' => $urls);
|
||||||
$this->response($data,REST_Controller::HTTP_OK);
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -3563,4 +3568,37 @@ class PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getQCLenderRemarks_post()
|
||||||
|
{
|
||||||
|
$records = $this->post('records');
|
||||||
|
|
||||||
|
$pdid = $records['pd_id'];
|
||||||
|
$fields = array();
|
||||||
|
if($records['flag'] == 'QC')
|
||||||
|
{
|
||||||
|
$fields = array('qc_remarks','qc_rating');
|
||||||
|
}
|
||||||
|
else if($records['flag'] == 'LENDER')
|
||||||
|
{
|
||||||
|
$fields = array('lender_remarks','lender_rating');
|
||||||
|
}
|
||||||
|
|
||||||
|
$where_condition_array = array('pd_id'=>$pdid);
|
||||||
|
$result = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PDTRIGGER);
|
||||||
|
if(count($result))
|
||||||
|
{
|
||||||
|
$data['dataStatus'] = true;
|
||||||
|
$data['status'] = REST_Controller::HTTP_OK;
|
||||||
|
$data['records'] = $result;
|
||||||
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{ $data['dataStatus'] = false;
|
||||||
|
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||||
|
$data['msg'] = 'No Remarks Available for this PD!';
|
||||||
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user