Shift hidden id column added to update
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user