Calculate cleared balance in core
Review Request #118107 - Created May 12, 2014 and submitted
It calculates cleared balance for an account in MyMoneyFile, instead of doing it in the ledger view (kgloballedgerview.cpp) I'm posting it here because I'm a bit concerned on the performance it may have for everyday use. I'm keen on optimizing, but this kind of code should be removed from the views in the long-term.
I tested with a small file. It works ok. I still have to add a unit test for it.
I'll incorporate it as soon as possible in a updated version of https://git.reviewboard.kde.org/r/112885/ . Thanks, Alvaro, for doing this job. I'll also report back as soon as I can regarding speed.