Mail flow check : GWM

This commit is contained in:
Gowtham M 2025-07-22 18:43:49 +05:30
parent effd5de835
commit 6b0256b83d
5 changed files with 9 additions and 5 deletions

View File

@ -40,7 +40,7 @@ class AuthController extends ResourceController
$this->provider = new Azure([
'clientId' => "9af66888-eb85-48ec-b3a0-ba857734f52b",
'clientSecret' => "N2_8Q~FBEXtoZft2UgJ6FQZCh3ZIbJydYgxREbUb",
'redirectUri' => "https://apitest.tripapprovaltool.com/tstat/authredirection",
'redirectUri' => "https://apitest.tripapprovaltool.com/tstat/index.html#/authredirection",
'tenant' => "284bf2b6-6dd8-4b46-881c-de45fde35736",
]);
$this->provider->scope = [

View File

@ -1433,14 +1433,16 @@ class PlanController extends ResourceController
public function url()
{
echo '<pre>';
sendPlanCreationMail(5);
print_r(getPlanApproverAction(5)); die;
// echo '<pre>';
// print_r(getAllowedClassForUser(2,4)['hotel']); die;
return $this->generatePlanPdf(53, true);
die;
echo '<pre>';
print_r(getPlanApproverAction(62)); die;
die;
return send_email_agent(env('ORG_id') , 62);
return updatePlanStatus(62);

View File

@ -45,6 +45,8 @@ if (!function_exists('sendPlanCreationMail')) {
if ($value['is_action_done'] == 1) { continue; }
// Skip if action is None
if ($value['action'] === 'None') { continue; }
// skip with below condition
if($mailOn == 'send_mail_to_only_approver' && $action['parallel_process_from'] == 1){ continue; }
if($value['action'] == 'Approval'){ $template = 'plan_creation_approval_notification_to_approver'; }else if($value['action'] == 'Notification'){ $template = 'plan_creation_notification_to_approver'; }