Re: Adding transactions to beancount ledger

2018-03-12 Thread Justus Pendleton
On Sunday, March 11, 2018 at 11:28:05 PM UTC+7, Michael Droogleever wrote: > > I believe it is against the design of beancount, but is there any existing > code which attempts to add transactions to an existing beancount file. > Assuming the entries in the file are grouped by asset account, it wo

Re: Adding transactions to beancount ledger

2018-03-12 Thread Jakob Schnitzer
Fava has an UI to add transactions and code to insert them into the file (which is also used when using Beancount's import system in Fava). The code for it `insert_entry()` lives in https://github.com/beancount/fava/blob/master/fava/core/file.py It works with "custom" directives where one c

Re: Adding transactions to beancount ledger

2018-03-11 Thread Martin Blais
There's nothing like that in the Beancount codebase. I've thought about building something to automatically insert imported transactions in the right "section" (I personally use org-mode, where each section corresponds to an institution and its related group of accounts) but it's unclear whether th

Adding transactions to beancount ledger

2018-03-11 Thread Michael Droogleever
I believe it is against the design of beancount, but is there any existing code which attempts to add transactions to an existing beancount file. Assuming the entries in the file are grouped by asset account, it would need to append the entry to the subsection of entries all from the same accou