The Transaktioner inbox lists unbooked skattekonto rows next to unbooked bank rows, but the sidebar badge and the Hem "Att göra" list counted bank rows only, so a migrated tax account waited in the inbox unseen. - lib/worklist: new category book_skattekonto with the inbox's own predicate (status = 'booked', no verifikat, not ignored); aggregate includes it in counts and total. - Hem: a "Bokföra skattekontohändelser" row under Bokför, deep-linking to /transactions?source=skatteverket. - Sidebar badge hook: the same third head-count query, summed into the /transactions badge. - DashboardNav subscribes to skattekonto_transactions realtime changes; migration adds the table to the supabase_realtime publication so a booked or ignored row drops the badge without a manual refresh. Closes #2180 Claude-Session: https://claude.ai/code/session_01QPQLwHNEiQfiCNLSMzXMiQ Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Jakob Wennberg
Claude Fable 5.1
parent
aeff998b90
commit
1e91c126ff
@@ -6534,6 +6534,7 @@
|
||||
"band_bevaka": "Monitor",
|
||||
"row_book_transactions": "Transactions to record",
|
||||
"row_book_transactions_stale": "{count} older than 14 days",
|
||||
"row_book_skattekonto": "Tax account events to record",
|
||||
"row_inbox_documents": "Documents to handle",
|
||||
"row_inbox_documents_detail": "Match to a transaction or record directly",
|
||||
"row_supplier_approval": "Supplier invoices to approve",
|
||||
|
||||
@@ -6534,6 +6534,7 @@
|
||||
"band_bevaka": "Bevaka",
|
||||
"row_book_transactions": "Bokföra transaktioner",
|
||||
"row_book_transactions_stale": "{count} äldre än 14 dagar",
|
||||
"row_book_skattekonto": "Bokföra skattekontohändelser",
|
||||
"row_inbox_documents": "Underlag att hantera",
|
||||
"row_inbox_documents_detail": "Matcha mot transaktion eller bokför direkt",
|
||||
"row_supplier_approval": "Leverantörsfakturor att attestera",
|
||||
|
||||
Reference in New Issue
Block a user