changed logic in laser idle hour report
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Larastan / larastan (pull_request) Failing after 8m56s
Laravel Pint / pint (pull_request) Successful in 8m53s

This commit is contained in:
dhanabalan
2026-10-06 09:45:45 +05:30
parent 3221024b4a
commit 6ce77383eb

View File

@@ -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);
// });