From b4338c68145f1d489c5623f8afba47237d7c4532 Mon Sep 17 00:00:00 2001 From: grabowski Date: Tue, 21 Apr 2026 14:10:07 +0700 Subject: [PATCH] Link source expense/invoice from account transaction rows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each transaction that was posted from an expense or invoice now shows an 'Open expense →' or 'Open invoice →' link to the source record's detail page. The sourceExpenseId/sourceInvoiceId fields were already loaded — just needed the UI affordance. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../accounts/[accountId]/+page.svelte | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/routes/(app)/companies/[companyId]/accounts/[accountId]/+page.svelte b/src/routes/(app)/companies/[companyId]/accounts/[accountId]/+page.svelte index 870bfd9..2a2e782 100644 --- a/src/routes/(app)/companies/[companyId]/accounts/[accountId]/+page.svelte +++ b/src/routes/(app)/companies/[companyId]/accounts/[accountId]/+page.svelte @@ -347,6 +347,22 @@ Counterparty: {txn.counterpartyName} {/if} + {#if txn.sourceExpenseId} + + Open expense → + + {/if} + {#if txn.sourceInvoiceId} + + Open invoice → + + {/if} {#if txn.fxRate && txn.fxAmount}
FX: {txn.fxAmount} @ {Number(txn.fxRate).toFixed(4)}