On 3/12/16 2:26 PM, Martin Blais wrote:
Clear is simple: for each balance of the income and expenses accounts,
insert a transaction that returns this balance to zero.
https://bitbucket.org/blais/beancount/src/adb5510d49c21a13d34082d40d9bfa6b5f39e55b/src/python/beancount/ops/summarize.py?at=default&fileviewer=file-view-default#summarize.py-145
https://bitbucket.org/blais/beancount/src/adb5510d49c21a13d34082d40d9bfa6b5f39e55b/src/python/beancount/ops/summarize.py?at=default&fileviewer=file-view-default#summarize.py-347
Best way to witness this in action is to create a minimal test input file
and to use the print report to observe the resulting stream of
transactions. Or inspect the unit tests here:
https://bitbucket.org/blais/beancount/src/adb5510d49c21a13d34082d40d9bfa6b5f39e55b/src/python/beancount/ops/summarize_test.py?at=default&fileviewer=file-view-default#summarize_test.py-212
Thanks, that's interesting. (I do it manually to balance sheet accounts
at file boundaries to allow journal file concatenation. clear is a good
name.)
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/ngvnjm%24rsp%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.