Bean report without "ammending" the txns?

59 views
Skip to first unread message

Peter

unread,
Nov 14, 2022, 2:10:34 AM11/14/22
to Beancount
Hi,

is it possible to use bean-report … print without "amending" the original txns?

By amending I mean:

- bean-report fills empty reductions of lots (Assets:XY -1YZ {} ==> Assets:XY -1YZ {3 USD, 2022-01-01}), which I don't want at this point.
- bean-report removes txns that contain errors

Currently, I have a messy *.bean file, because of a lot of imports. To deal with errors, etc., I'd like to have the *.bean at least sorted by date. Bean-report is the only alternative that does that, but because of the amendments it isn't usable for me at the moment.

So, is there a way to suppress the amendments or sort the file via another way?

Regards

Martin Blais

unread,
Nov 14, 2022, 9:56:34 PM11/14/22
to bean...@googlegroups.com
bean-report is deprecated.  Use bean-query.

On Mon, Nov 14, 2022 at 2:10 AM Peter <tobias....@gmail.com> wrote:
Hi,

is it possible to use bean-report … print without "amending" the original txns?

By amending I mean:

- bean-report fills empty reductions of lots (Assets:XY -1YZ {} ==> Assets:XY -1YZ {3 USD, 2022-01-01}), which I don't want at this point.
- bean-report removes txns that contain errors

That's a problem I'd like to fix in the next version indeed, it's a frustrating one.

 

Currently, I have a messy *.bean file, because of a lot of imports. To deal with errors, etc., I'd like to have the *.bean at least sorted by date. Bean-report is the only alternative that does that, but because of the amendments it isn't usable for me at the moment.

So, is there a way to suppress the amendments or sort the file via another way?

Regards

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/f481e92c-071c-410f-9bbb-40aa042dbee7n%40googlegroups.com.

Peter

unread,
Nov 19, 2022, 3:56:53 AM11/19/22
to Beancount
Thanks for pointing that out. I wasn't aware of that.

How would I achieve that sorting functionality with bean-query? I tried to play with bean-query a couple of times, but learning to use the sql-like syntax is hard.

Would bean-query also amend the txns and insert lot dates and partly filled postings (missing position, so beancount augment the units)

Martin Blais

unread,
Nov 19, 2022, 2:09:54 PM11/19/22
to bean...@googlegroups.com
About removing the effects post-parsing and the transformations: in current version (v2) it's not possible.
In the next version it will be; in fact, plugins at that time will be able to operate on that or on the completed ones.https://docs.google.com/document/d/1qPdNXaz5zuDQ8M9uoZFyyFis7hA0G55BEfhWhrVBsfc/edit#heading=h.im13x0na711c
(Don't hold your breath though, I've got a packed schedule until next summer and dev time is more or less on the ice.)

If you need just sorting your file that could be achieved with a little Python script without really parsing much beyond the initial date and lumping paragraphs together.





Reply all
Reply to author
Forward
0 new messages