From e5deb4b41386388e715005f0e7b5940c7bbbe98a Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 6 Mar 2023 09:41:14 -0800 Subject: [PATCH] doesn't allow months to be zero --- app/Models/Depreciation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Depreciation.php b/app/Models/Depreciation.php index 39fb935494..9faa1b86e2 100755 --- a/app/Models/Depreciation.php +++ b/app/Models/Depreciation.php @@ -16,7 +16,7 @@ class Depreciation extends SnipeModel // Declare the rules for the form validation protected $rules = [ 'name' => 'required|min:3|max:255|unique:depreciations,name', - 'months' => 'required|max:3600|integer', + 'months' => 'required|max:3600|integer|gt:0', ]; /**