mail api fixed : ps
This commit is contained in:
parent
5051bee810
commit
8d56abd358
@ -1302,26 +1302,22 @@ public function filterSalesPDList_post() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//api for Manually Resend Report With Mail.
|
//api for Manually Resend Report With Mail.
|
||||||
public function resendmailforSaleReport_get(){
|
public function resendSaleReportMail_get(){
|
||||||
$sales_pd_id = $this->get('sales_pd_id');
|
$sales_pd_id = $this->get('sales_pd_id');
|
||||||
if(!empty($sales_pd_id)){
|
if(!empty($sales_pd_id)){
|
||||||
$city = '';
|
$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);
|
$gen_form = json_decode($form[0]['section_data'],true);
|
||||||
if(!empty($gen_form)){
|
if(!empty($gen_form)){
|
||||||
foreach ($gen_form['questions'] as $g_key => $g_value)
|
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')
|
if($g_value['question_key'] == 'city')
|
||||||
{
|
{
|
||||||
$city = $g_value['answer_value'];
|
$city = $g_value['answer_value'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}//gen_form closed here.
|
}//gen_form closed here.
|
||||||
PDALERTS::sendSalesPDMail($this,$records['sales_pd_id'],$city);
|
PDALERTS::sendSalesPDMail($this,$sales_pd_id,$city);
|
||||||
$data['dataStatus'] = true;
|
$data['dataStatus'] = true;
|
||||||
$data['status'] = REST_Controller::HTTP_OK;
|
$data['status'] = REST_Controller::HTTP_OK;
|
||||||
$data['msg'] = ' Sented Successfully!';
|
$data['msg'] = ' Sented Successfully!';
|
||||||
@ -1339,7 +1335,7 @@ public function filterSalesPDList_post() {
|
|||||||
|
|
||||||
//test purpose
|
//test purpose
|
||||||
public function testSaleSection_get(){
|
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);
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user