diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 5b63c987..e72e99b2 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -1302,26 +1302,22 @@ public function filterSalesPDList_post() { } //api for Manually Resend Report With Mail. - public function resendmailforSaleReport_get(){ + public function resendSaleReportMail_get(){ $sales_pd_id = $this->get('sales_pd_id'); if(!empty($sales_pd_id)){ $city = ''; - $form = $this->Sales_PD_Model->selectCustomRecords(array(),array('isactive' => 1,'sales_pd_id' => $records['sales_pd_id'],'section_id' => 1,'status' => 1),SALESPD_SECTION_DATA); + $form = $this->Sales_PD_Model->selectCustomRecords(array(),array('isactive' => 1,'sales_pd_id' => $sales_pd_id,'section_id' => 1,'status' => 1),SALESPD_SECTION_DATA); $gen_form = json_decode($form[0]['section_data'],true); if(!empty($gen_form)){ foreach ($gen_form['questions'] as $g_key => $g_value) { - // if($g_value['question_key'] == 'state') - // { - // $ids_to_send_mail['state'] = $g_value['answer_value']; - // } if($g_value['question_key'] == 'city') { $city = $g_value['answer_value']; } } }//gen_form closed here. - PDALERTS::sendSalesPDMail($this,$records['sales_pd_id'],$city); + PDALERTS::sendSalesPDMail($this,$sales_pd_id,$city); $data['dataStatus'] = true; $data['status'] = REST_Controller::HTTP_OK; $data['msg'] = ' Sented Successfully!'; @@ -1339,7 +1335,7 @@ public function filterSalesPDList_post() { //test purpose public function testSaleSection_get(){ - $data = $this->Sales_PD_Model->testSaleSection($this->get('id')); + $data = $this->Sales_PD_Model->testSaleSection(527); $this->response($data,REST_Controller::HTTP_OK); }