Hello all,
I've written and shared some code for basic double-entry accounting. All code is thread safe and easily overriden to give as much flexibility as possible.
A tester project is included showing a few ways to use,
https://github.com/mr-highball/ledger-Highball