From e490185533a924ca17e1efcc02a9abb10608871c Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 5 Dec 2017 12:54:19 -0800 Subject: [PATCH] Fixed EOL in custom report --- app/Http/Controllers/ReportsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index affdbda069..884915aaaf 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -637,7 +637,7 @@ class ReportsController extends Controller } if ($request->has('eol')) { - $row[] = ($asset->eol) ? $asset->present()->eol_date() : ''; + $row[] = ($asset->purchase_date!='') ? $asset->present()->eol_date() : ''; } if ($request->has('order')) {