feat(accounts): merchants and payers as a league table
Expense and revenue accounts list this month per currency, share, visits, average, twelve months, typical and the change against it, last visit and category; quiet ones fold into one line behind i. 1 to 5 sort, ; groups by category with subtotals, x and s c set the category on all of a merchant's transactions in the period.
This commit is contained in:
1 parent
26903b0066
commit
fffb770cac
7 files changed
+1352
No files matched your search
@@ -2,6 +2,7 @@
|
||||
import type { AccountType } from "#lib/api/types.js";
|
||||
import AccountsIndex from "#lib/components/accounts/AccountsIndex.svelte";
|
||||
import Ledger from "#lib/components/accounts/Ledger.svelte";
|
||||
import Merchants from "#lib/components/accounts/Merchants.svelte";
|
||||
import { page } from "$app/state";
|
||||
|
||||
const type = $derived(page.params.type as AccountType);
|
||||
@@ -10,6 +11,8 @@
|
||||
{#key type}
|
||||
{#if type === "liabilities"}
|
||||
<Ledger />
|
||||
{:else if type === "expense" || type === "revenue"}
|
||||
<Merchants kind={type} />
|
||||
{:else}
|
||||
<AccountsIndex {type} />
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user