Updated validation

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-03-21 18:34:39 +00:00
parent 828b84084d
commit e9e6f925bf

View file

@ -98,7 +98,7 @@ class Asset extends Depreciable
'last_checkout' => 'nullable|date_format:Y-m-d H:i:s',
'expected_checkin' => 'nullable|date',
'last_audit_date' => 'nullable|date_format:Y-m-d H:i:s',
'next_audit_date' => 'nullable|date|date_format:Y-m-d',
'next_audit_date' => 'nullable|date|after:last_audit_date',
'location_id' => 'nullable|exists:locations,id',
'rtd_location_id' => 'nullable|exists:locations,id',
'purchase_date' => 'nullable|date|date_format:Y-m-d',