Hi,
I would recommend to use BQL, that should allow you to easily do it.
https://beancount.github.io/docs/beancount_query_language.html
You can use bql also from your scripts
Regards,
Patrick
On 26.11.2021 08:15, vijayvithal jahagirdar wrote:
I am writing a bunch of python scripts to generate various compliance
reports required by the India Govt.
As a part of this I am interested in getting
1. The value of all postings in an account on a give date,
2. The value of all postings in an account in a given date range,
Currently I am
1. Iterating through all entries ->Transactions ->posting
2. checking whether it matches account name and date range
3. Adding up the value.
Since It looks like a fairly common task for accounting, I am
wondering whether I am reinventing the wheel? Does a similar function
exist within beancount?
--
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 beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/71818f11-e867-424e-9695-2c4d55e94d67n%40googlegroups.com
<https://groups.google.com/d/msgid/beancount/71818f11-e867-424e-9695-2c4d55e94d67n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/d20afcbb-4a86-facf-c671-1796ad03ed5b%40ch.tario.org.