Merge pull request 'Again changed logic in laser idle report' (#1177) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #1177
This commit was merged in pull request #1177.
This commit is contained in:
@@ -89,6 +89,7 @@ class SendLaserIdleHourReport extends Command
|
||||
|
||||
$motorCount = $machineRecords
|
||||
->where('motor_machine_name', $machineName)
|
||||
->where('motor_marked_status', 'Marked')
|
||||
->filter(function ($record) {
|
||||
return (float) ($record->motor_marked_physical_count ?? 0) > 0;
|
||||
})
|
||||
@@ -99,6 +100,7 @@ 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;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user