Thanks! Yes, Martin's report seems better. Although, not sure if it's a bug, but if I add a --period argument, I get a segfault error.
e.g. $ ledger reg '^Expenses' and expr 'any(account =~ /^Assets:Cash/)' --period 'every week this month' Segmentation fault: 11 On Wednesday, October 1, 2014 12:55:42 AM UTC+8, Martin Michlmayr wrote: > > * Martin Michlmayr <[email protected] <javascript:>> [2014-09-30 12:49]: > > > > Is it possible to do a register report for ^Expenses, but only for > the > > > > amounts that were taken from Assets:Cash? > > > > > I believe the following works best: > > > > reg '^Expenses' and expr 'any(account =~ /^Assets:Cash/)' > > ... although this has the problem of showing the complete expense, not > just the amount taken from Assets:Cash. So if you have an expense of > $10 ($5 in cash, $5 from your bank account), you'd get $10 and not $5 > with my query. > > -- > Martin Michlmayr > http://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.
