Issue #152: Add Net Income to Income Statement (blais/beancount)

2017-01-05 Thread Chad Whitacre
New issue 152: Add Net Income to Income Statement https://bitbucket.org/blais/beancount/issues/152/add-net-income-to-income-statement Chad Whitacre: It's easy but annoying to calculate it manually from the subtotals for income and expense. -- You received this message because you are subscrib

beancount OFX; investment inventory

2017-01-05 Thread Christopher Singley
Hi, I'm writing some accounting applications in Python, and thereby stumbled upon beancount. It occurs to me that you might be interested in my OFX parser: https://github.com/csingley/ofxtools It handles a pretty decent subset of the OFX spec, it handles OFX versions 1 & 2, and it has no depen

Re: beancount OFX; investment inventory

2017-01-05 Thread Jason Chu
An OFX parser already exists as part of beancount.ingest ( https://bitbucket.org/blais/beancount/src/397e821a48c5db2700a8a66868c5d4e68ca19bfb/src/python/beancount/ingest/importers/ofx.py ). The original design for importing into beancount is the LegerHub doc ( https://docs.google.com/document/d/11

Re: beancount OFX; investment inventory

2017-01-05 Thread Christopher Singley
beancount.ingest.importers.ofx doesn't handle INVSTMTRS at all, does it? Just STMTRS and CCSTMTRS. What I need is an importer that translates OFX INVSTMTRS to beancount transaction entries. If lot inception dates have been decoupled from transaction dates, I should probably be able to write o

Re: beancount OFX; investment inventory

2017-01-05 Thread Martin Blais
On Thu, Jan 5, 2017 at 12:09 PM, Christopher Singley wrote: > Hi, I'm writing some accounting applications in Python, and thereby > stumbled upon beancount. > > It occurs to me that you might be interested in my OFX parser: > > https://github.com/csingley/ofxtools > > It handles a pretty decent s

Re: beancount OFX; investment inventory

2017-01-05 Thread Martin Blais
As mentioned earlier, my importer has no pretension of being exhaustive or compliant with "the standard." It's a piece of code I've used over the years that has evolved and served me well, however. Importers are generally rather unsavory code, to be honest. As long as they work on the subset of inp

Re: beancount OFX; investment inventory

2017-01-05 Thread Christopher Singley
Thanks Martin. Yeah I need datetime not just date type, which is of course not terribly compatible with the mandate for human-friendly input format. I'm browsing through beancount.core.inventory.add_amount(), which seems to assume that the units have pre-matched against the positions in invent

Re: beancount OFX; investment inventory

2017-01-05 Thread Martin Blais
On Thu, Jan 5, 2017 at 11:54 PM, Martin Blais wrote: > On Thu, Jan 5, 2017 at 12:09 PM, Christopher Singley > wrote: > >> Hi, I'm writing some accounting applications in Python, and thereby >> stumbled upon beancount. >> >> It occurs to me that you might be interested in my OFX parser: >> >> htt

Re: beancount OFX; investment inventory

2017-01-05 Thread Martin Blais
On Fri, Jan 6, 2017 at 12:17 AM, Christopher Singley wrote: > Thanks Martin. Yeah I need datetime not just date type, which is of > course not terribly compatible with the mandate for human-friendly input > format. > > I'm browsing through beancount.core.inventory.add_amount(), which seems > to