mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 06:31:22 +00:00
Various improvements for https://github.com/firefly-iii/firefly-iii/issues/8281
This commit is contained in:
@@ -225,6 +225,7 @@ class BudgetController extends Controller
|
||||
$return[$currencyId]['native_spent'] = bcadd($return[$currencyId]['native_spent'], $convertedAmount);
|
||||
}
|
||||
}
|
||||
$converter->summarize();
|
||||
|
||||
return $return;
|
||||
}
|
||||
@@ -288,6 +289,7 @@ class BudgetController extends Controller
|
||||
$result[$limitCurrencyId]['native_overspent'] = app('steam')->positive(bcadd($convertedLimitAmount, $result[$limitCurrencyId]['native_spent']));
|
||||
}
|
||||
}
|
||||
$converter->summarize();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -137,6 +137,7 @@ class CategoryController extends Controller
|
||||
usort($return, static function (array $a, array $b) {
|
||||
return (float)$a['native_amount'] < (float)$b['native_amount'] ? 1 : -1;
|
||||
});
|
||||
$converter->summarize();
|
||||
|
||||
return response()->json($this->clean($return));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user