diff --git a/src/lib/posting.ts b/src/lib/posting.ts index a2a4b3c2..01e54a8a 100644 --- a/src/lib/posting.ts +++ b/src/lib/posting.ts @@ -34,18 +34,3 @@ export function change(p: Posting): Change { days }; } - -export function filterPostings(rows: { date: string; posting: Posting }[], filter: string) { - let filterRegex = new RegExp(".*", "i"); - if (filter) { - filterRegex = new RegExp(filter, "i"); - } - - return _.filter( - rows, - (r) => - filterRegex.test(r.posting.account) || - filterRegex.test(r.posting.payee) || - filterRegex.test(r.date) - ); -} diff --git a/src/routes/ledger/posting/+page.svelte b/src/routes/ledger/posting/+page.svelte index 3813003f..5d0a260f 100644 --- a/src/routes/ledger/posting/+page.svelte +++ b/src/routes/ledger/posting/+page.svelte @@ -1,32 +1,52 @@
@@ -52,14 +84,15 @@
-

- + f.name) + }} /> -

+
@@ -141,15 +174,3 @@
- -