quality issue solved for empty records in trigger mail #505
@@ -42,7 +42,6 @@ class TriggerPendingApprovalMails extends Command
|
||||
|
||||
public $wfId;
|
||||
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$this->info('Approval mail job started');
|
||||
@@ -74,10 +73,8 @@ class TriggerPendingApprovalMails extends Command
|
||||
});
|
||||
|
||||
if ($records->isEmpty()) {
|
||||
$this->info('No pending approvals');
|
||||
return;
|
||||
}
|
||||
|
||||
$this->info('No characteristics pending approvals');
|
||||
}else{
|
||||
$grouped = $records->groupBy(function ($item) {
|
||||
$this->wfId = $item->work_flow_id;
|
||||
return $item->plant_id . '|' . $item->machine_id . '|' . $item->aufnr . '|' . $item->work_flow_id;
|
||||
@@ -231,7 +228,7 @@ class TriggerPendingApprovalMails extends Command
|
||||
'SENT'
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// .. Quality Mail trigger logic
|
||||
|
||||
@@ -382,8 +379,8 @@ class TriggerPendingApprovalMails extends Command
|
||||
$pdfPath,
|
||||
$pendingApprovers,
|
||||
$approverNameFromMaster,
|
||||
$subjectLine,
|
||||
$characteristics
|
||||
$subjectLine
|
||||
// $characteristics
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user