mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed #6625 - include fully depreciated date in custom asset report
This commit is contained in:
parent
89a2ce1c6c
commit
4b8f9d810b
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue