sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.14k stars 207 forks source link

Running balance on statements does not take into account cutoff properly #7628

Open novoselt opened 2 weeks ago

novoselt commented 2 weeks ago

The balance at cutoff when viewing statements should be the last balance shown on the top line. Instead the top line shows zero and then the bottom one shows the cutoff balance with opposite sign. This is what a user sees starting from the first/oldest statement: image since the oldest one only has one charge, the balance after it becomes negative, not zero. The next statement starts neither with 0 nor 226, but 39, which is the cutoff balance of the second statement. Note that the list of all transactions, without breaking down into statements, is correct.

novoselt commented 2 weeks ago

Actually, I played with my account - it seems that the top balance of any statement is shown as the CURRENT balance, and then the rest of the numbers are working. This is not critical as everything is working, but it also means that statements are very likely to be wrong for a whole lot of people and it is quite concerning for those who do pay attention.