beancount / beancount

Beancount: Double-Entry Accounting from Text Files.
http://beancount.github.io/
GNU General Public License v2.0
3.86k stars 315 forks source link

Create a balance_end directive #118

Open blais opened 8 years ago

blais commented 8 years ago

Original report by Martin Blais (Bitbucket: blais, GitHub: blais).


See: https://groups.google.com/d/msgid/beancount/CALkVjQbGAgJiGFb0aT9rUUYtiWOYOWvJGUgKqgGsuSE7%3DrodCQ%40mail.gmail.com?utm_medium=email&utm_source=footer

The new syntax should not have to produce a new directive type; rather, just fudge the date at input time.

hitit-web commented 3 years ago

I just wanted to say that I would very much like for this to be implemented during the rewrite for v3. I personally prefer end-of-day balances so that the date on the balance assertion agrees with the date on the statement (of course notwithstanding the remaining problem of settlement date).

Thanks for your hard work!

raj-magesh commented 2 years ago

FWIW, closing_balance and opening_balance seem great as directives, where closing_balance is evaluated at end-of-day (after all transactions of that day) and opening_balance is evaluated at start-of-day (after all transactions of the previous day).