LFMP EXCEL UPLOAD PART
This commit is contained in:
parent
51b2bdbe91
commit
67c77d1ea4
@ -1376,8 +1376,9 @@ public function filterSalesPDList_post() {
|
|||||||
$filename = ($pd_master_data[0]['re_uploaded'] ? XLPATH.'/tmp/'.$pd_master_data[0]['re_uploaded_file_name'] : XLPATH.'/tmp/'.$pd_master_data[0]['modified_fname']);
|
$filename = ($pd_master_data[0]['re_uploaded'] ? XLPATH.'/tmp/'.$pd_master_data[0]['re_uploaded_file_name'] : XLPATH.'/tmp/'.$pd_master_data[0]['modified_fname']);
|
||||||
|
|
||||||
// $filename = XLPATH.'/tmp/mySMCPD_client_working.xlsx';
|
// $filename = XLPATH.'/tmp/mySMCPD_client_working.xlsx';
|
||||||
// $filename = 'C:\Users\Venba\Downloads\Kathir Info Pvt.xlsx';
|
// $filename = 'C:\Users\Venba\Documents\Test Demo17_dev_LFMP.xls';
|
||||||
// echo $filename;die();
|
// $filename = 'C:\Users\Venba\Downloads\Test Demo17_dev.xlsx';
|
||||||
|
// echo $filename;die();
|
||||||
if(!file_exists($filename))
|
if(!file_exists($filename))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -85,6 +85,7 @@ class readexceldata
|
|||||||
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
|
||||||
{
|
{
|
||||||
@ -93,6 +94,49 @@ class readexceldata
|
|||||||
if(count($pd_master)){ $return_data['sub_product'] = $pd_master[0]['fk_subproduct_id']; }
|
if(count($pd_master)){ $return_data['sub_product'] = $pd_master[0]['fk_subproduct_id']; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else if($section_id == 5) //handle multiple stake holders data
|
||||||
|
{
|
||||||
|
// echo 'ajjnjk';
|
||||||
|
// print_r($return_data);//die();
|
||||||
|
|
||||||
|
$re_arranged_stake_holders_details = array();
|
||||||
|
if(isset($return_data['key_stakeholders']))
|
||||||
|
{
|
||||||
|
foreach ($return_data['key_stakeholders'] as $key => $value)
|
||||||
|
{
|
||||||
|
|
||||||
|
for($i = 0;$i <= 2; $i++)
|
||||||
|
{
|
||||||
|
$dynamic_share_key = ('share_holding#'.($i + 1));
|
||||||
|
$dynamic_vintage_key = ('vintage_in_current_biz#'.($i + 1));
|
||||||
|
$dynamic_work_exp_key = ('total_work_exp#'.($i + 1));
|
||||||
|
if((array_key_exists( $dynamic_share_key, $value)) && (array_key_exists( $dynamic_vintage_key, $value)) && (array_key_exists( $dynamic_work_exp_key, $value)))
|
||||||
|
{
|
||||||
|
$temp['stakeholder_name'] = $value['stakeholder_name'];
|
||||||
|
$temp['share_holding'] = $value[ $dynamic_share_key ];
|
||||||
|
$temp['company_id'] = ($i + 1);
|
||||||
|
$temp['vintage_in_current_biz'] = $value[ $dynamic_vintage_key ];
|
||||||
|
$temp['total_work_exp'] = $value[ $dynamic_work_exp_key ];
|
||||||
|
$re_arranged_stake_holders_details[] = $temp;
|
||||||
|
|
||||||
|
}
|
||||||
|
// if()
|
||||||
|
// {
|
||||||
|
|
||||||
|
// }
|
||||||
|
// if(array_key_exists( $dynamic_work_exp_key, $value))
|
||||||
|
// {
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
// print_r($re_arranged_stake_holders_details);
|
||||||
|
// die();
|
||||||
|
$return_data['key_stakeholders'] = $re_arranged_stake_holders_details;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -168,7 +212,8 @@ class readexceldata
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// print_r($keys);
|
// print_r($keys);
|
||||||
//print_r($return_data);//die();
|
//print_r($return_data);die();
|
||||||
|
|
||||||
$return_data = SELF::transformRowColumsForMultipleData($return_data,$keys);
|
$return_data = SELF::transformRowColumsForMultipleData($return_data,$keys);
|
||||||
if(SELF::$current_section_id == 10)
|
if(SELF::$current_section_id == 10)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user