diff --git a/app/Console/Commands/SendLaserIdleHourReport.php b/app/Console/Commands/SendLaserIdleHourReport.php index d2e1eeca..4f148642 100644 --- a/app/Console/Commands/SendLaserIdleHourReport.php +++ b/app/Console/Commands/SendLaserIdleHourReport.php @@ -100,11 +100,12 @@ class SendLaserIdleHourReport extends Command $pumpCount = $machineRecords ->where('pump_machine_name', $machineName) - ->where('pump_marked_status', 'Marked') - ->filter(function ($record) { - return (float) ($record->pump_marked_physical_count ?? 0) > 0; - }) - ->count(); + // ->where('pump_marked_status', 'Marked') + ->sum(fn ($record) => (float) ($record->pump_marked_physical_count ?? 0)); + // ->filter(function ($record) { + // return (float) ($record->pump_marked_physical_count ?? 0) > 0; + // }) + // ->count(); // ->sum(function ($record) { // return (float) ($record->pump_marked_physical_count ?? 0); // });