Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Escape checkout target name
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed Apr 24, 2022
1 parent ef7f21e commit f623d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Transformers/DepreciationReportTransformer.php
Expand Up @@ -98,7 +98,7 @@ public function transformAsset(Asset $asset)
'purchase_cost' => Helper::formatCurrencyOutput($asset->purchase_cost),
'book_value' => Helper::formatCurrencyOutput($depreciated_value),
'monthly_depreciation' => $monthly_depreciation,
'checked_out_to' => $checkout_target,
'checked_out_to' => ($checkout_target) ? e($checkout_target) : null,
'diff' => Helper::formatCurrencyOutput($diff),
'number_of_months' => ($asset->model && $asset->model->depreciation) ? e($asset->model->depreciation->months) : null,
'depreciation' => (($asset->model) && ($asset->model->depreciation)) ? e($asset->model->depreciation->name) : null,
Expand Down

0 comments on commit f623d05

Please sign in to comment.