pd visit date fixes : ps
This commit is contained in:
parent
09418f5783
commit
7c5f2b2c7b
@ -975,11 +975,14 @@ class PD_Controller extends REST_Controller {
|
|||||||
$pd_details['complete_location'] = isset($pd_details['link']) ? $pd_details['link'] : null;
|
$pd_details['complete_location'] = isset($pd_details['link']) ? $pd_details['link'] : null;
|
||||||
unset($pd_details['link']);
|
unset($pd_details['link']);
|
||||||
}
|
}
|
||||||
|
if($pd_details['pd_status'] == COMPLETED){
|
||||||
if($exist_pd_details[0]['fk_pd_type'] != 2 && (!isset($pd_details['is_revert_status']) || $exist_pd_details[0]['pd_status'] != COMPLETED))
|
if(($exist_pd_details[0]['pd_status'] != COMPLETED) || ($exist_pd_details[0]['pd_status'] != QC_COMPLETED)){
|
||||||
|
if($exist_pd_details[0]['fk_pd_type'] != 2 && (!isset($pd_details['is_revert_status'])))
|
||||||
{
|
{
|
||||||
$pd_details['pd_visit_date'] = date('Y-m-d H:i:s');
|
$pd_details['pd_visit_date'] = date('Y-m-d H:i:s');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
unset($pd_details['is_revert_status']);
|
unset($pd_details['is_revert_status']);
|
||||||
//get satellite image blob and store it in DB
|
//get satellite image blob and store it in DB
|
||||||
//$pd_details['satellite_image_base64_blob'] = $this->getSatelliteImage($pd_details['pd_id']);
|
//$pd_details['satellite_image_base64_blob'] = $this->getSatelliteImage($pd_details['pd_id']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user