Skip to content

A free open source IT asset/license management system

More nullables

snipe91fe136fd3e9
diff --git a/app/Models/Asset.php b/app/Models/Asset.php
index f2794b4ea0..4e1b2c12bb 100644
--- a/app/Models/Asset.php
+++ b/app/Models/Asset.php
@@ -51,11 +51,11 @@ class Asset extends Depreciable
'name' => 'min:2|max:255',
'model_id' => 'required|integer',
'status_id' => 'required|integer',
- 'company_id' => 'integer',
+ 'company_id' => 'integer|nullable',
'warranty_months' => 'numeric|max:240|nullable',
'physical' => 'numeric|max:1|nullable',
- 'checkout_date' => 'date|max:10|min:10',
- 'checkin_date' => 'date|max:10|min:10',
+ 'checkout_date' => 'date|max:10|min:10|nullable',
+ 'checkin_date' => 'date|max:10|min:10|nullable',
'supplier_id' => 'numeric|nullable',
'asset_tag' => 'required|min:1|max:255|unique_undeleted',
'status' => 'integer',