Added machine description in laser idle report mail
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 2m57s
Laravel Larastan / larastan (pull_request) Failing after 4m59s

This commit is contained in:
dhanabalan
2026-10-14 12:23:12 +05:30
parent 55f3dbd4ff
commit f757c05787
2 changed files with 6 additions and 0 deletions

View File

@@ -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,