From 1e850415b74a1eafdbd0c9a587b3faff29ba0f81 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 14 Oct 2026 12:31:43 +0530 Subject: [PATCH] changed logic in laser idle report --- app/Console/Commands/SendLaserIdleHourReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/SendLaserIdleHourReport.php b/app/Console/Commands/SendLaserIdleHourReport.php index 58d7fce2e3..66f20f4e91 100644 --- a/app/Console/Commands/SendLaserIdleHourReport.php +++ b/app/Console/Commands/SendLaserIdleHourReport.php @@ -122,7 +122,7 @@ 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(); + $machineDes = Configuration::where('plant_id', $plant->id)->where('c_type', 'MACHINE NAME')->where('c_name', $machineName)->first(); $totalExpectedMilliseconds = $machineRecords