autobean.sorted: find out misplaced / misdated transactions

45 views
Skip to first unread message

Archimedes Smith

unread,
Jun 15, 2021, 7:58:08 PM6/15/21
to Beancount
Very often I make mistakes on dates. For example:
  • After copy-pasting transactions, I forgot to update their dates.
  • When a new year starts, I keep typing date in the previous year.
This can be really confusing: I see my balance assertion failing, but out of so many transactions between the two balance assertions, who's the culprit? Is this about misdated transactions, missing / duplicated postings, bad amounts / accounts / currencies, ..., or even worse, a combination of them?

Therefore, I made this git.io/autobean.sorted plugin which helps identifying misplaced or misdated directives, by warning on those directives not following a non-descending order by date in the file. Check it out if you are interested!

autobean.sorted.vscode.png

Martin Blais

unread,
Jun 15, 2021, 9:29:29 PM6/15/21
to Beancount
Added to contrib doc. Thank you!


--
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/c6a74058-b5fb-491a-9cd7-c053d5005f0en%40googlegroups.com.

Martin Michlmayr

unread,
Jun 15, 2021, 9:46:03 PM6/15/21
to bean...@googlegroups.com
* Archimedes Smith <seia...@gmail.com> [2021-06-15 16:58]:
> Therefore, I made this git.io/autobean.sorted plugin which helps
> identifying misplaced or misdated directives, by warning on those
> directives not following a non-descending order by date in the file.

The file_ordering plugin from https://github.com/zacchiro/beancount-plugins-zack/
does the same.

--
Martin Michlmayr
https://www.cyrius.com/
Reply all
Reply to author
Forward
0 new messages