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

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

View File

@@ -92,18 +92,20 @@ class SendLaserIdleHourReport extends Command
->filter(function ($record) {
return (float) ($record->motor_marked_physical_count ?? 0) > 0;
})
->sum(function ($record) {
return (float) ($record->motor_marked_physical_count ?? 0);
});
->count();
// ->sum(function ($record) {
// return (float) ($record->motor_marked_physical_count ?? 0);
// });
$pumpCount = $machineRecords
->where('pump_machine_name', $machineName)
->filter(function ($record) {
return (float) ($record->pump_marked_physical_count ?? 0) > 0;
})
->sum(function ($record) {
return (float) ($record->pump_marked_physical_count ?? 0);
});
->count();
// ->sum(function ($record) {
// return (float) ($record->pump_marked_physical_count ?? 0);
// });
$namePlateCount = $machineRecords
->where('name_plate_machine_name', $machineName)