From c3398d4d51325997dfba5db1940a3b60027c651f Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 22 Oct 2023 08:05:28 +0200 Subject: [PATCH] Fix refactor for field. --- app/Support/Amount.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Support/Amount.php b/app/Support/Amount.php index 54541bad07..c018e502c7 100644 --- a/app/Support/Amount.php +++ b/app/Support/Amount.php @@ -108,8 +108,9 @@ class Amount */ public function getCurrencies(): Collection { - throw new FireflyException(sprintf('Method "%s" needs a refactor', __METHOD__)); - return TransactionCurrency::where('enabled', true)->orderBy('code', 'ASC')->get(); + /** @var User $user */ + $user = auth()->user(); + return $user->currencies()->orderBy('code','ASC')->get(); } /**