From 4b8f9d810b661bc46927596cca58a17cc0355e0a Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 24 Jan 2019 12:38:17 -0800 Subject: [PATCH] Fixed #6625 - include fully depreciated date in custom asset report --- app/Http/Controllers/ReportsController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index b974808ab0..23ffd7a6c6 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -431,6 +431,7 @@ class ReportsController extends Controller if ($request->filled('depreciation')) { $header[] = 'Value'; $header[] = 'Diff'; + $header[] = 'Fully Depreciated'; } if ($request->filled('checkout_date')) { @@ -667,6 +668,7 @@ class ReportsController extends Controller $diff = ($asset->purchase_cost - $depreciation); $row[] = Helper::formatCurrencyOutput($depreciation); $row[] = Helper::formatCurrencyOutput($diff); + $row[] = ($asset->depreciated_date()!='') ? $asset->depreciated_date()->format('Y-m-d') : ''; } if ($request->filled('checkout_date')) {