mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fix for #8580
Checking $asset->depreciation before calling $asset->depreciated_date()
This commit is contained in:
parent
338106734a
commit
5824ac3b28
|
@ -682,7 +682,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') : '';
|
||||
$row[] = ($asset->depreciation ? $asset->depreciated_date()->format('Y-m-d') : '';
|
||||
}
|
||||
|
||||
if ($request->filled('checkout_date')) {
|
||||
|
|
Loading…
Reference in a new issue