From c17f2efca6a2f831f5e3581674a87e1799f79267 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 3 Jan 2025 04:36:41 +0100 Subject: [PATCH] Fix missing variables. --- app/Http/Controllers/Chart/BudgetController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.php index 2ae6db7a63..e017f322c1 100644 --- a/app/Http/Controllers/Chart/BudgetController.php +++ b/app/Http/Controllers/Chart/BudgetController.php @@ -397,6 +397,9 @@ class BudgetController extends Controller foreach ($journals as $journal) { $key = sprintf('%d-%d', $journal['destination_account_id'], $journal['currency_id']); $amount = $journal['amount']; + $symbol = $journal['currency_symbol']; + $code = $journal['currency_code']; + $name = $journal['currency_name']; // if convert to native, use the native things, unless it's the foreign amount which is in the native currency. if ($this->convertToNative && $journal['currency_id'] !== $this->defaultCurrency->id && $journal['foreign_currency_id'] !== $this->defaultCurrency->id) {