* melbogia m <[email protected]> [2018-05-13 15:04]:
> ledger bal Expenses:Vacation -b 2019 -e 2010
>
> And of course the plane tickets are not going to be accounted for.
>
> How do you deal with this kind of thing, short of remembering that
> you have transactions in 2018, and I'd rather not rely on
> remembering it. I thought of just post dating the plane ticket
> transaction to 2019 but that seems extremely hacky.
The easiest solution would be to tag your vacation related
transactions with a tag (spring-cancun, summer-thailand, etc), then
the year doesn't matter as you can just lookup by tag.
The other option would be to use an effective date (aux date):
2018-05-14 * Ticket to Cancun (American Airlines)
Expenses:Travel:Airfare 500.00 EUR ; [=2019-04-03]
Assets:Cash -500.00 EUR
ledger -f d reg ex --aux-date
2019-04-03 Ticket to Cancun (American Airlines) Expenses:Travel:Airfare
500.00 EUR 500.00 EUR
See https://www.ledger-cli.org/3.0/doc/ledger3.html#Effective-Dates
The other option (which is probably overcomplicates things) is to read
about cash vs accruals accounting and to accrue this expense (but I'd
probably consider this a bit border line, unless the ticket is fully
refundable. Then again, since this is for your personal use, you can
do whatever you want.)
Basically, the idea is:
2018-05-14 * Bought ticket to Cancun (American Airlines)
Assets:Tickets 500.00 EUR
Assets:Cash -500.00 EUR
2019-04-03 * Used ticket to Cancun (American Airlines)
Expenses:Travel:Airfare 500.00 EUR
Assets:Tickets -500.00 EUR
(This makes more sense for things like a Groupon voucher which is
valid for X months.)
--
Martin Michlmayr
https://www.cyrius.com/
--
---
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].
For more options, visit https://groups.google.com/d/optout.