From 7f545ea88ea7eba4ca2b82f5ba928cd5bc8953e6 Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 10 Nov 2025 00:43:22 +0100 Subject: [PATCH] Excludes voided transactions from pending entries Ensures that voided transactions are not included in the list of pending entries. This prevents displaying transactions that have been cancelled or reversed, providing a more accurate view of truly pending items. --- views_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views_api.py b/views_api.py index a5f54ca..25d49db 100644 --- a/views_api.py +++ b/views_api.py @@ -381,7 +381,8 @@ async def api_get_pending_entries( pending_entries = [] for e in all_entries: - if e.get("t") == "Transaction" and e.get("flag") == "!": + # Only include pending transactions that are NOT voided + if e.get("t") == "Transaction" and e.get("flag") == "!" and "voided" not in e.get("tags", []): # Extract entry ID from links field entry_id = None links = e.get("links", [])