split-pro icon indicating copy to clipboard operation
split-pro copied to clipboard

Feature: recalculate balances button

Open krokosik opened this issue 11 months ago • 1 comments

We have been using Split Pro for a while, but it seems our balances are not properly calculated. In particular, all group balances are equal to zero despite having a multitude of expenses and I expect that issue #190 might be one of the reasons.

Since Split Pro is still under development and lacks a test suite that would give more confidence to its mechanism, I propose adding a recalculate balances button, available only to group admins. This would take all expenses and derive the group balances, without affecting anything outside from the GroupBalance table.

krokosik avatar Feb 19 '25 16:02 krokosik

After using it a bit in our setup, we noticed that individual balances are still somehow messed up, even though groups show correctly. I would propose instead an environment variable that if set, would recalculate all balances on server startup. @KMKoushik what do you think?

krokosik avatar Feb 28 '25 14:02 krokosik

Okay I will merge the group button only for now. Will think about individual balances after we refactor them for 1.5

krokosik avatar Jun 09 '25 19:06 krokosik