From 26945285eb92002a728f21fc22031d5592f39b5e Mon Sep 17 00:00:00 2001 From: grabowski Date: Mon, 20 Apr 2026 12:55:37 +0700 Subject: [PATCH] Show base-currency equivalent next to foreign-currency account balances Co-Authored-By: Claude Opus 4.6 (1M context) --- .../(app)/companies/[companyId]/accounts/+page.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/routes/(app)/companies/[companyId]/accounts/+page.svelte b/src/routes/(app)/companies/[companyId]/accounts/+page.svelte index 7b5c5ce..7660860 100644 --- a/src/routes/(app)/companies/[companyId]/accounts/+page.svelte +++ b/src/routes/(app)/companies/[companyId]/accounts/+page.svelte @@ -767,6 +767,13 @@

{formatAmount(acct.balance, acct.currency)}

+ {#if acct.currency !== data.company.currency && acct.fxRateToBase} + {@const baseEquivalent = (Number(acct.balance) * Number(acct.fxRateToBase)).toFixed(2)} +

+ ≈ {formatAmount(baseEquivalent, data.company.currency)} + (@ {Number(acct.fxRateToBase)}) +

+ {/if} {#if acct.accountType === 'credit_card' && acct.creditLimit} {@const pct = utilisation(acct.balance, acct.creditLimit)}