changed logic for log info in laser
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 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 13m1s
Laravel Pint / pint (pull_request) Successful in 10m27s

This commit is contained in:
dhanabalan
2026-10-06 09:56:56 +05:30
parent c2a30e0c7d
commit 3bf96c8ddb

View File

@@ -98,8 +98,10 @@ class SendLaserIdleHourReport extends Command
// return (float) ($record->motor_marked_physical_count ?? 0);
// });
$pumpCount = $machineRecords
->where('pump_machine_name', $machineName)
$pumpRecords = $machineRecords
->where('pump_machine_name', $machineName);
$pumpCount = $pumpRecords
// ->where('pump_machine_name', $machineName)
// ->where('pump_marked_status', 'Marked')
->sum(fn ($record) => (float) ($record->pump_marked_physical_count ?? 0));
// ->filter(function ($record) {
@@ -114,9 +116,9 @@ class SendLaserIdleHourReport extends Command
'plant_id' => $plant->id,
'plant' => $plant->name,
'machine' => $machineName,
'pump_rows' => $machineRecords->count(),
'pump_rows' => $pumpRecords->count(),
'pump_sum' => $pumpCount,
'pump_values' => $machineRecords
'pump_values' => $pumpRecords
->pluck('pump_marked_physical_count')
->countBy()
->toArray(),