-
v0.0.6 Stable
released this
2026-03-31 15:54:07 +00:00 | 0 commits to main since this releaseFix BQL balance queries mixing EUR and SATS face values
The BQL queries in get_user_balance_bql() and get_all_user_balances_bql()
used GROUP BY account without currency, causing sum(number) to add EUR
face values from expense entries (EUR @@ SATS notation) with SATS face
values from payment entries (plain SATS). This inflated displayed fiat
amounts by orders of magnitude for users with settlement payments.Fix: add currency to GROUP BY so EUR and SATS rows are separate, use
sum(weight) for net SATS (correct across all entry formats), and scale
fiat proportionally for partial settlements.https://git.aiolabs.dev/padreug/castle/compare/v0.0.5...v0.0.6
Downloads
-
Source code (ZIP)
6 downloads
-
Source code (TAR.GZ)
1 download
-
Source code (ZIP)