Fixed EOL in custom report

This commit is contained in:
snipe 2017-12-05 12:54:19 -08:00
parent deba4d2b81
commit e490185533

View file

@ -637,7 +637,7 @@ class ReportsController extends Controller
} }
if ($request->has('eol')) { if ($request->has('eol')) {
$row[] = ($asset->eol) ? $asset->present()->eol_date() : ''; $row[] = ($asset->purchase_date!='') ? $asset->present()->eol_date() : '';
} }
if ($request->has('order')) { if ($request->has('order')) {