We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7f21e commit f623d05Copy full SHA for f623d05
app/Http/Transformers/DepreciationReportTransformer.php
@@ -98,7 +98,7 @@ public function transformAsset(Asset $asset)
98
'purchase_cost' => Helper::formatCurrencyOutput($asset->purchase_cost),
99
'book_value' => Helper::formatCurrencyOutput($depreciated_value),
100
'monthly_depreciation' => $monthly_depreciation,
101
- 'checked_out_to' => $checkout_target,
+ 'checked_out_to' => ($checkout_target) ? e($checkout_target) : null,
102
'diff' => Helper::formatCurrencyOutput($diff),
103
'number_of_months' => ($asset->model && $asset->model->depreciation) ? e($asset->model->depreciation->months) : null,
104
'depreciation' => (($asset->model) && ($asset->model->depreciation)) ? e($asset->model->depreciation->name) : null,
0 commit comments