diff --git a/app/Console/Commands/SendLaserIdleHourReport.php b/app/Console/Commands/SendLaserIdleHourReport.php index 4f148642..d662e115 100644 --- a/app/Console/Commands/SendLaserIdleHourReport.php +++ b/app/Console/Commands/SendLaserIdleHourReport.php @@ -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')