Merge branch 'develop' into adminlte4

This commit is contained in:
James Cole 2023-08-08 16:45:23 +02:00
commit deb51bd8de

View File

@ -408,7 +408,7 @@ class BasicController extends Controller
// either an amount was budgeted or 0 is available.
$currency = $currencies[$currencyId] ?? $this->currencyRepos->find($currencyId);
$currencies[$currencyId] = $currency;
$amount = $available[$currencyId] ?? '0';
$amount = $available[$currencyId]['amount'] ?? '0';
$amountNative = $converter->convert($default, $currency, $start, $amount);
$left = bcadd($amount, $spent);
$leftNative = bcadd($amountNative, $spentNative);