changed logic in laser idle hour report #1178
@@ -100,11 +100,12 @@ class SendLaserIdleHourReport extends Command
|
|||||||
|
|
||||||
$pumpCount = $machineRecords
|
$pumpCount = $machineRecords
|
||||||
->where('pump_machine_name', $machineName)
|
->where('pump_machine_name', $machineName)
|
||||||
->where('pump_marked_status', 'Marked')
|
// ->where('pump_marked_status', 'Marked')
|
||||||
->filter(function ($record) {
|
->sum(fn ($record) => (float) ($record->pump_marked_physical_count ?? 0));
|
||||||
return (float) ($record->pump_marked_physical_count ?? 0) > 0;
|
// ->filter(function ($record) {
|
||||||
})
|
// return (float) ($record->pump_marked_physical_count ?? 0) > 0;
|
||||||
->count();
|
// })
|
||||||
|
// ->count();
|
||||||
// ->sum(function ($record) {
|
// ->sum(function ($record) {
|
||||||
// return (float) ($record->pump_marked_physical_count ?? 0);
|
// return (float) ($record->pump_marked_physical_count ?? 0);
|
||||||
// });
|
// });
|
||||||
|
|||||||
Reference in New Issue
Block a user