John Wiegley <
jo...@newartisans.com> writes:
>>>>>> Richard Lawrence <
wyl...@gmail.com> writes:
>
>> I think what I'd like to do is limit transactions by the *related* account,
>> something like
>
>> ledger --limit 'related =~ /assets:Me/' reg expenses:shared
>
> One reason this doesn't exist is because there can be multiple related
> accounts.
Right, good point.
> I suppose that "related" could become the textual sum of all the
> related accounts?
After thinking about this, I'm not sure it would work in my current
setup. I have transactions like this:
2015/08/07 Shared credit card payment
liabilities:shared:CC $1000.00
assets:Me:Checking $-600.00
assets:Roommate $-400.00
I'd like to be able to use two different expressions here to generate
two reports, for Me and for Roommate. The first report would include my
$600 payment in the running total of what I've paid toward the shared
account; the second report would include my roommate's $400 payment in
her running total.
So, given my current setup, I guess what I would need is a way to limit
by individual related accounts within a transaction, not just their
textual sum. I was envisioning "related =~ /assets:Me/" in the
pseudo-command above as selecting just my `side' of transactions like
this for inclusion into the report. I have no idea if that's compatible
with the way ledger actually works internally, though.
(This may not be the best way to record such payments, though it does
make it easy to see at a glance that the correct total amount was paid,
while recording the different contributions. But I'm willing to switch
to separate transactions if it makes the reporting easier.)
Best,
Richard