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 b3996f1 commit a4729a7Copy full SHA for a4729a7
app/Http/Transformers/DepreciationReportTransformer.php
@@ -63,7 +63,7 @@ public function transformAsset(Asset $asset)
63
*/
64
if (($asset->model) && ($asset->model->depreciation) && ($asset->model->depreciation->months !== 0)) {
65
$depreciated_value = Helper::formatCurrencyOutput($asset->getDepreciatedValue());
66
- $monthly_depreciation =Helper::formatCurrencyOutput($asset->purchase_cost / $asset->model->depreciation->months);
+ $monthly_depreciation =Helper::formatCurrencyOutput($asset->getMonthlyDepreciation());
67
$diff = Helper::formatCurrencyOutput(($asset->purchase_cost - $asset->getDepreciatedValue()));
68
}
69
else if($asset->model->eol !== null) {
0 commit comments