Changed logic in laser idle hour report
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Pint / pint (pull_request) Successful in 6m57s
Laravel Larastan / larastan (pull_request) Failing after 10m20s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Pint / pint (pull_request) Successful in 6m57s
Laravel Larastan / larastan (pull_request) Failing after 10m20s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user