Re: Modify postings in transactions and update the input beancount file

2024-03-15 Thread Martin Blais
There's a far fetched idea for the next version to augment the parser such that it is possible to completely reverse the process and regenerate the input file with modifications, but it's just a fanciful idea at this point. On Fri, Mar 15, 2024 at 6:47 PM Saglara S wrote: > I want to add and

Modify postings in transactions and update the input beancount file

2024-03-15 Thread Saglara S
I want to add and modify postings in transactions based on a lookup table (search string : account). The script here does the job and will print out the modified transactions. But how on earth to modify / update the transactions in the input file accordingly? import json import re from