From f7e51d62e25dd782a6ba0d351e11a7f605a67239 Mon Sep 17 00:00:00 2001 From: Velz2020 Date: Tue, 26 Nov 2019 12:55:08 +0530 Subject: [PATCH] SALES PD FEEDBACKS --- .../controllers/Sales_PD_Controller.php | 17 +++- .../report_templates/JSONTOREPORT_DI_AI.php | 4 +- .../views/sale_pd_templates/MWISE.php | 91 ++++++++++--------- 3 files changed, 62 insertions(+), 50 deletions(-) diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 0305dd07..670567d6 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -67,11 +67,20 @@ class Sales_PD_Controller extends REST_Controller { { $applicant_id = $g_value['answer_value']; } - if($g_value['question_key'] == 'person_met_during_visit') - { - $applicant_name = $g_value['answer_value']; + + if($g_value['question_key'] == 'person_met_during_visit') + { + $applicant_name = $g_value['answer_value']; - } + } + if($records['product_id'] == 4) + { + if($g_value['question_key'] == 'company_name') + { + $applicant_name = $g_value['answer_value']; + } + } + } } if($value['section_id'] == 8) diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index dd4ba540..c15ab5dc 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -4124,7 +4124,7 @@ if($total_no_of_business > 0) {
  • -
  • +
  • @@ -4138,7 +4138,7 @@ if($total_no_of_business > 0) { else{?> -

    Status of the check: could not verify.

    +

    Status of the check: could not verify.

    ↓'; $dash = ' '; $product_name = $product_id == 8 ? 'LFMP' : 'BL'; + $rupee_symbol = ""; ?> @@ -85,6 +86,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); /* #########End of Score Card Table Styles######### */ .tdcenteralign{ text-align: center; } +.thlargefont{ font-size: 20px; } + @@ -106,7 +109,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); - Personal Discussion Sheet - (For Sales Team) + Personal Discussion Sheet - (For Sales Team) Application ID @@ -138,13 +141,13 @@ defined('BASEPATH') OR exit('No direct script access allowed'); - + - + - + @@ -158,13 +161,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
    Fund RequirementFund Requirement
    Loan Amount Applied for (Rs) Total Fund Requirement (Rs)
    Loan Tenure (Months)
    - + - - + + @@ -174,12 +177,12 @@ defined('BASEPATH') OR exit('No direct script access allowed'); foreach ($section3 as $section3_key => $section3_value) { - echo ''. - ''. - ''. - ''. - ''. - ''. + echo ''. + ''. + ''. + ''. + ''. + ''. ''; } @@ -188,7 +191,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ?> - + @@ -200,14 +203,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
    Details of Key Stakeholders in the BusinessDetails of Key Stakeholders in the Business
    Name Share HoldingVintage in Current BusinessTotal Work ExpVintage in Current Business (Yrs)Total Work Exp(Yrs) Previous Experience Details Started Business
    '.$section3_value['name'] .''.$section3_value['share_holding'].''.$section3_value['vintage_in_current_biz'].''.$section3_value['total_work_exp'].''.$section3_value['previous_experience_details'].''.$section3_value['started_biz'].'
    '.$section3_value['name'] .''.$section3_value['share_holding'].'%'.$section3_value['vintage_in_current_biz'].''.$section3_value['total_work_exp'].''.$section3_value['previous_experience_details'].''.$section3_value['started_biz'].'
    Brief of the Business / ServiceBrief of the Business / Service
    - + - - +
    Financial InformationFinancial Information
    Name of the Company / Firm whose financials are noted
    +'.($fy_value['sales_revenue'] ).''; + echo ''; } } ?> @@ -247,7 +250,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); { if(is_numeric($fy_key)) { - echo ''; + echo ''; } } ?> @@ -261,7 +264,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); { if(is_numeric($fy_key)) { - echo ''; + echo ''; } } ?> @@ -351,15 +354,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
    Particulars of Financials as per books of Accounts (Can be captured prior to PD) '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat(($fy_value['sales_revenue'])).''.($fy_value['net_profit'] ).''.$rupee_symbol.' '. MYUTIL::customIndianNumberFormat($fy_value['net_profit']).''.round((($fy_value['net_profit'] / $fy_value['sales_revenue'] ) * 100 ),2).''.round((($fy_value['net_profit'] / $fy_value['sales_revenue'] ) * 100 ),2).'%
    - + - + - +
    Income to be Considered (Rs Per Annum) Income Considered (Rs Per Mth)
    Income assessment Program Recommended Fixed Obligations (Rs per month)
    @@ -372,7 +375,7 @@ if(isset($section6)) - + @@ -394,7 +397,7 @@ if(isset($section6)) - + @@ -408,7 +411,7 @@ if(isset($section6))
    Property Information Property Information
    Property Address (With Landmark & PIN)Built-Up Area (Sq. Ft.) Approx Mkt. Val (Rs)
    Property Ownership Status (Enter the names of the Property Owner(s) and their relationships)
    - + @@ -484,28 +487,28 @@ if(isset($section6)) $iter = 0; $photo_names = array('selfie_with_person_met' => 'Selfie with person met','approach_to_pd_location' => 'Approach to pd location','name_board_seen' => 'Name board seen', 'stock_image' => 'Stock image','workplace_interior_image' => 'Workplace interior image'); //if(count($photos)) - $tot_rows = ceil(count($section9) / 3); - if(count($section9)) - { - echo '
    Final Remarks of PD officerFinal Remarks of PD officer
    Business activity seen during visit (Yes / No)
    Photograph`s

    '; + // $tot_rows = ceil(count($section9) / 3); + // if(count($section9)) + // { + // echo '
    Photograph`s

    '; - for($row = 0;$row < $tot_rows; $row++) - { - echo ''; - $from = $row == 0 ? $row : ($row+2); - $to = ($from + 2); - for($i = $from ; $i <= $to; $i++) - { + // for($row = 0;$row < $tot_rows; $row++) + // { + // echo ''; + // $from = $row == 0 ? $row : ($row+2); + // $to = ($from + 2); + // for($i = $from ; $i <= $to; $i++) + // { - echo ''; + // echo ''; - //unset($p_key); - } - echo ''; - } - echo '

    '.$photo_names [ $section9[$i]['img_name'] ].'

    '.$photo_names [ $section9[$i]['img_name'] ].'
    '; - } + // //unset($p_key); + // } + // echo ''; + // } + // echo ''; + // } ?>