FLYHI Regen Report : ps
This commit is contained in:
parent
610a3657fa
commit
7d9c07d4bf
@ -639,8 +639,8 @@ class Flyhi_Controller extends REST_Controller {
|
||||
$records = $this->post('records');
|
||||
$lender_id = $records['lender_id'];
|
||||
// $product = $records['product_id'];
|
||||
$flyhi_pd_type = $records['sales_pd_type'] ? $records['sales_pd_type'] : null;
|
||||
$product = $records['product_id'];
|
||||
$flyhi_pd_type = isset($records['sales_pd_type']) ? $records['sales_pd_type'] : null;
|
||||
$product = isset($records['product_id']) ? $records['product_id'] : null;
|
||||
$pd_type = 2;
|
||||
if(isset($records['pd_type'])){ $pd_type = $records['pd_type'];}
|
||||
$template = $this->Flyhi_Model->selectCustomRecords(array('*'),array('lender_id' => $lender_id,'pd_type' => $pd_type,'sales_pd_type' => $flyhi_pd_type,'isactive' => 1),SALESPDTEMPLATE);
|
||||
@ -932,6 +932,17 @@ class Flyhi_Controller extends REST_Controller {
|
||||
$questions["lender_abbr"] = $result_data[0]['short_name'];
|
||||
}
|
||||
}
|
||||
if($ques_key == 'relationship_with_applicant' && !empty($ques_value)){
|
||||
$table = RELATIONSHIPS;
|
||||
$fields = array('relationship_id','name');
|
||||
$where_condition_array = array('relationship_id'=>$ques_value);
|
||||
$result_data = $this->Flyhi_Model->selectCustomRecords($fields,$where_condition_array,$table);
|
||||
if(count($result_data))
|
||||
{
|
||||
$new_key = $ques_key . '_master';
|
||||
$questions[$new_key] = $result_data[0]['name'];
|
||||
}
|
||||
}
|
||||
if($ques_key == 'branch' && !empty($ques_value)){
|
||||
|
||||
$table = ENTITYLENDERBRANCH;
|
||||
@ -2198,7 +2209,7 @@ class Flyhi_Controller extends REST_Controller {
|
||||
public function regenerateFlyhiReport_get(){
|
||||
$sales_pd_id = $this->get('sales_pd_id');
|
||||
if(!empty($sales_pd_id)){
|
||||
$this->Sales_PD_Model->updateRecords(array('is_pdf' => 0),SALES_PD_DATA,array('sales_pd_id' => $sales_pd_id));
|
||||
$this->Flyhi_Model->updateRecords(array('is_pdf' => 0),SALES_PD_DATA,array('sales_pd_id' => $sales_pd_id));
|
||||
log_message('ERROR','####Manually Called - Report Generated Flyhi pd = '.$sales_pd_id);
|
||||
$this->prepareFlyhiPDReport($sales_pd_id);}
|
||||
else{
|
||||
|
||||
@ -342,7 +342,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Relationship with Applicant</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['relationship_with_applicant'])?$section1['relationship_with_applicant']:'Not Provided'; ?> </td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['relationship_with_applicant_master'])?$section1['relationship_with_applicant_master']:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Educational Institute Name</td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user