Added machine description in laser idle report mail
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Console\Commands;
|
||||
use App\Mail\LaserIdleMail;
|
||||
use App\Models\ClassCharacteristic;
|
||||
use App\Models\Plant;
|
||||
use App\Models\Configuration;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class SendLaserIdleHourReport extends Command
|
||||
@@ -121,6 +122,8 @@ class SendLaserIdleHourReport extends Command
|
||||
return (float) ($record->man_marked_status ?? 0);
|
||||
});
|
||||
|
||||
$machineDes = Configuration::where('plant_id', $plantId)->where('c_type', 'MACHINE NAME')->where('c_name', $machineName)->first();
|
||||
|
||||
$totalExpectedMilliseconds =
|
||||
$machineRecords
|
||||
->where('motor_machine_name', $machineName)
|
||||
@@ -222,6 +225,7 @@ class SendLaserIdleHourReport extends Command
|
||||
'no' => $no++,
|
||||
'plant' => $plant->name,
|
||||
'machine' => $machineName,
|
||||
'machine_description' => $machineDes->c_value,
|
||||
|
||||
'motorCount' => $motorCount,
|
||||
'pumpCount' => $pumpCount,
|
||||
|
||||
Reference in New Issue
Block a user