On 5/23/22 15:46, Martin Michlmayr wrote:
* Alan <[email protected]> [2022-05-23 18:32]:
Referring to the "Bountiful Blessings" example in the Effective Dates manual
<https://www.ledger-cli.org/3.0/doc/ledger3.html#Effective-Dates>, if you
say `ledger --effective register Groceries` you get the proper effective
dates. If you instead say `ledger --effective register Checking` you would
get just the one date, 2008/10/16, which makes sense now that I think about
it. But I was somehow expecting/hoping that it would show separate lines in
the Checking register, with the same effective dates from the Expenses
lines.
If you want to same effective date for checking and expenses, you have
to add the effective date on the transaction header:
2020-05-20=2020-02-03 * Foo
You probably have it on the posting using the ; [...] syntax. If you
do this, it only applies to the posting.
In other words: there are two ways to specify effective dates, one is
for the whole transaction and one is only for a posting.
My recollection (and it could be wrong, I haven't checked docs or tested
with Ledger) is:
; [DATE] ; sets posting date
; [=EDATE] ; sets posting effective date
; [DATE=EDATE] ; sets both posting dates
--
---
You received this message because you are subscribed to the Google Groups "Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ledger-cli/fb23a977-35ce-79c3-1f30-fb16c43ce000%40joyful.com.