1
0
forked from poc/pds

Shift hidden id column added to update

This commit is contained in:
dhanabalan
2025-03-31 22:08:31 +05:30
parent f96667ee26
commit a383aa00ed

View File

@@ -170,6 +170,22 @@ class ProductionPlanResource extends Resource
$set('ppLineError', 'Production plan already updated.'); $set('ppLineError', 'Production plan already updated.');
return; return;
} }
else
{
$shiftId = \App\Models\Shift::where('id', $get('shift_id'))
->first();
if($shiftId->start_time > $shiftId->end_time)
{
$set('ppLineError', 'End time goes tomorrow...');
return;
}
else
{
$set('ppLineError', 'End time is within today...');
return;
}
}
} }
$set('ppLineError', null); $set('ppLineError', null);
} }