Validation for completion date

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-06-14 16:13:57 +01:00
parent 8c1e19e77c
commit b1ba3376aa
+1 -1
View File
@@ -31,7 +31,7 @@ class AssetMaintenance extends Model implements ICompanyableChild
'title' => 'required|max:100',
'is_warranty' => 'boolean',
'start_date' => 'required|date_format:Y-m-d',
'completion_date' => 'date_format:Y-m-d|nullable',
'completion_date' => 'date_format:Y-m-d|nullable|after_or_equal:start_date',
'notes' => 'string|nullable',
'cost' => 'numeric|nullable',
];