NORMAL COMMIT
This commit is contained in:
parent
3d274733ce
commit
8f4831b811
@ -321,7 +321,7 @@ class PD_Controller extends REST_Controller {
|
||||
$pd_details = json_decode($this->post('pd_details'),true);
|
||||
|
||||
// $pd_details['fk_lender_id'] = 16;
|
||||
// $pd_details['fk_product_id'] = 7;
|
||||
// $pd_details['fk_product_id'] = 7;`
|
||||
// $pd_details['fk_customer_segment'] = 5;
|
||||
// $pd_details['pd_status'] = TRIGGERED;
|
||||
|
||||
@ -7283,9 +7283,8 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//echo $total_stock_observed;die();
|
||||
if( $total_stock_observed != 0 && !(isset($pd_images[11]) ))//&& !count($pd_images[11][0])) )
|
||||
|
||||
if( $total_stock_observed != 0 && !(count($pd_images[11])))//&& !count($pd_images[11][0])) )
|
||||
{
|
||||
$incomplete_details[] = 'Stock Section - Images not sufficient';
|
||||
}
|
||||
@ -7344,7 +7343,7 @@ class PD_Controller extends REST_Controller {
|
||||
$tempdoc = $output_file;
|
||||
$tempdocname = $temp_file_name;
|
||||
$bucketname = LENDER_BUCKET_NAME_PREFIX.$pd_details[0]['fk_lender_id'];
|
||||
$key = 'pd'.$pd_id.'/'.$tempdocname;
|
||||
$key = 'pd'.$records['fk_pd_id'].'/'.$tempdocname;
|
||||
$sourcefile = $tempdoc;
|
||||
|
||||
$bucket_data = array('bucket_name'=>$bucketname,'key'=>$key,'sourcefile'=>$sourcefile);
|
||||
@ -7357,7 +7356,7 @@ class PD_Controller extends REST_Controller {
|
||||
if(isset($records['pd_document_title'])){ $record_data['pd_document_title'] = $records['pd_document_title']; }
|
||||
|
||||
$where_condition_array = array('pd_document_id' => $records['pd_document_id']);
|
||||
$id = $this->PD_Model-updateRecords($record_data,PDDOCUMENTS,$where_condition_array);
|
||||
$id = $this->PD_Model->updateRecords($record_data,PDDOCUMENTS,$where_condition_array);
|
||||
if($id != null || $id != "")
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user