From 36484d50eff1588d2ef7457bc0cb6351af8a8ad2 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 29 Sep 2022 17:07:42 -0700 Subject: [PATCH] Fixed depreciation API call Signed-off-by: snipe --- app/Http/Transformers/DepreciationsTransformer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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') ];