A free open source IT asset/license management system
Updated validation
snipee9e6f925bf6d
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 981d785251..2830eca7e5 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -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',