Skip to content

A free open source IT asset/license management system

Fixed depreciation API call

snipe36484d50eff1
diff --git a/app/Http/Transformers/DepreciationsTransformer.php b/app/Http/Transformers/DepreciationsTransformer.php
index 717568f025..71aa6c97f7 100644
--- a/app/Http/Transformers/DepreciationsTransformer.php
+++ b/app/Http/Transformers/DepreciationsTransformer.php
@@ -20,14 +20,13 @@ class DepreciationsTransformer
return (new DatatablesTransformer)->transformDatatables($array, $total);
}
- public function transformDepreciation(Depreciation $depreciation, Depreciable $monthly_depreciation)
+ public function transformDepreciation(Depreciation $depreciation)
{
$array = [
'id' => (int) $depreciation->id,
'name' => e($depreciation->name),
'months' => $depreciation->months.' '.trans('general.months'),
'depreciation_min' => $depreciation->depreciation_min,
- 'monthly_depreciation' => $monthly_depreciation->getMonthlyDepreciation(),
'created_at' => Helper::getFormattedDateObject($depreciation->created_at, 'datetime'),
'updated_at' => Helper::getFormattedDateObject($depreciation->updated_at, 'datetime')
];