Merge pull request 'Added log info in laser idle report' (#1179) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1179
This commit was merged in pull request #1179.
This commit is contained in:
2026-10-06 04:22:32 +00:00

View File

@@ -110,6 +110,18 @@ class SendLaserIdleHourReport extends Command
// return (float) ($record->pump_marked_physical_count ?? 0);
// });
\Log::info('Laser Idle Pump Debug', [
'plant_id' => $plant->id,
'plant' => $plant->name,
'machine' => $machineName,
'pump_rows' => $machineRecords->count(),
'pump_sum' => $pumpCount,
'pump_values' => $machineRecords
->pluck('pump_marked_physical_count')
->countBy()
->toArray(),
]);
$namePlateCount = $machineRecords
->where('name_plate_machine_name', $machineName)
->where('name_plate_marked_status', 'Marked')