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

Reviewed-on: #1178
This commit was merged in pull request #1178.
This commit is contained in:
2026-10-06 04:16:47 +00:00

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