DIRCHECK SALES PD APP ID

This commit is contained in:
Velz2020 2020-02-07 10:31:33 +05:30
parent 9a8792c731
commit 6adeda862a
3 changed files with 12 additions and 10 deletions

View File

@ -9,24 +9,24 @@ class EXTERNAL_DIR_CHECK
public static function checkExternalDirectory($pd_id = null) //$msg,$data,$log_type
{
//echo 'EXTERNAL_DIR_CHECK called';
$path = $_SERVER['DOCUMENT_ROOT'].'/ssa_external_data';
$path = XLPATH;
if(!file_exists($path))
{
mkdir($path,0761);
mkdir($path,0777);
}
$path .='/'.ENVIRONMENT;
if(!file_exists($path))
{
mkdir($path,0761);
}
// $path .='/'.ENVIRONMENT;
// if(!file_exists($path))
// {
// mkdir($path,0761);
// }
$array = array($path.'/ci_logs',$path.'/api_request_logs',$path.'/app_logs',$path.'/pd_reports',$path.'/sales_pd',$path.'/sales_pd_logs');
foreach ($array as $key => $value)
{
if(!file_exists($value))
{
mkdir($value,0761);
mkdir($value,0777);
}
}

View File

@ -84,7 +84,9 @@ public static function getOtherLoanDetails($data,$pdid){
$first_row .= $tag['loan_type']==1 ? '<td class="customtd">'.$tag['others_loan_type'].'</td>' : '<td class="customtd">'.$tag['loan_type_master'] .'</td>';
$second_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($tag['loan_amount']).'</td>';
$loan_amt = $tag['loan_amount'] ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($tag['loan_amount']) : 'Not Provided';
$second_row .= '<td class="customtd">'.$loan_amt.'</td>';
//$third_row = '<td class="customtd">'.MYUTIL::customIndianNumberFormat($tag['loan_amount']).'</td>';

View File

@ -115,7 +115,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tr>
<tr>
<td colspan="3"> Application ID</td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['application_id']?> </td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['application_id'] ? $section1['application_id'] : 'Not Provided'?> </td>
</tr>
<tr>