smc new changes : ps
This commit is contained in:
parent
c44ac95068
commit
88c3a64950
@ -83,8 +83,7 @@ class readexceldata
|
|||||||
$pd_address = $CI->PD_Model->getPDAddress($pd_id);
|
$pd_address = $CI->PD_Model->getPDAddress($pd_id);
|
||||||
if(count($pd_address)){ $return_data['initiated_address'] = $pd_address[0]['addressline1'].', '.$pd_address[0]['city_name'].', '.$pd_address[0]['state_name'].' - '.$pd_address[0]['pincode']; }
|
if(count($pd_address)){ $return_data['initiated_address'] = $pd_address[0]['addressline1'].', '.$pd_address[0]['city_name'].', '.$pd_address[0]['state_name'].' - '.$pd_address[0]['pincode']; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if($section_id == 3) //get sub product as custom func tion
|
if($section_id == 3) //get sub product as custom func tion
|
||||||
{
|
{
|
||||||
@ -203,9 +202,6 @@ class readexceldata
|
|||||||
$keys = array();
|
$keys = array();
|
||||||
foreach ($sheetData as $key => $value)
|
foreach ($sheetData as $key => $value)
|
||||||
{
|
{
|
||||||
// print_r($value);
|
|
||||||
|
|
||||||
// die();
|
|
||||||
$tmp = SELF::returnMatchedData($section_ref_data,$value);//print_r($tmp);
|
$tmp = SELF::returnMatchedData($section_ref_data,$value);//print_r($tmp);
|
||||||
if(is_array($tmp))
|
if(is_array($tmp))
|
||||||
{
|
{
|
||||||
@ -396,8 +392,11 @@ class readexceldata
|
|||||||
$final_data = array();
|
$final_data = array();
|
||||||
$keys_to_be_decimal = array('sales_revenue','net_profit');
|
$keys_to_be_decimal = array('sales_revenue','net_profit');
|
||||||
$keys_to_be_per = array('share_holding');
|
$keys_to_be_per = array('share_holding');
|
||||||
// print_r($return_data);
|
if(isset($return_data['borrower_details'])){
|
||||||
// print_r($keys);die();
|
$array2 = array_filter($return_data['borrower_details']['numbers_of_years_business_running'], function($a) {return $a !== 'NA';});
|
||||||
|
$array1 = array_filter($return_data['borrower_details']['numbers_of_years_applicant_in_business'], function($a) {return $a !== 'NA';});
|
||||||
|
$return_data['borrower_details']['numbers_of_years_applicant_in_business'] = array_replace_recursive($array1, $array2);
|
||||||
|
}
|
||||||
foreach ($keys as $current_key => $arr)
|
foreach ($keys as $current_key => $arr)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -520,5 +519,18 @@ class readexceldata
|
|||||||
}
|
}
|
||||||
return $company;
|
return $company;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// public static function change_key( $array, $old_key, $new_key) {
|
||||||
|
// echo "line at 545";
|
||||||
|
// // print_r($array);
|
||||||
|
// if( ! array_key_exists( $old_key, $array[0] ) )
|
||||||
|
// return $array;
|
||||||
|
|
||||||
|
// print_r(array_keys($array[0]));
|
||||||
|
// // print_r($keys);die();
|
||||||
|
// $keys[ array_search( $old_key, $keys ) ] = $new_key;
|
||||||
|
// print_r(array_combine( $keys, $array[0] ));
|
||||||
|
// // return array_combine( $keys, $array );
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue
Block a user