• v0.0.6 b06c53c40f

    v0.0.6 Stable

    padreug released this 2026-03-31 15:54:07 +00:00 | 0 commits to main since this release

    Fix 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