On 02/14/2016 07:26 PM, Richard Lawrence wrote:
> Hi all,
>
> I have a question about related accounts.  I'm on ledger 3.1.0.  (I also
> use hledger 0.27, which I'd be happy to employ here if it can answer
> this question more easily.)
>
> Here is my use case: I keep track of expenses shared with a roommate
> under expenses:shared, and at the end of a given reporting period I want
> to be able to ask, "How much did I pay to expenses:shared, and how much
> did my roommate pay?" to see who owes money to the other.
>
> From the manual, I have gotten this far:  I can do
>
> $ ledger --related --display 'account =~ /assets:Me/' reg expenses:shared 
>
> to see transactions where I paid toward expenses shared, and similarly I
> could use assets:Roommate in the display predicate to see what my
> roommate paid.
>
> But as the manual notes, "The running total...is off, however, since a
> display expression is being used."  The running total reflects all
> transactions on expenses:shared, not just the ones that are selected by
> the display predicate.  So the above command is only useful for telling
> me the amounts of the individual transactions displayed; I must tally
> them up some other way before I can figure out who owes who, and how
> much.
>
> So my question is, is there some way to get a correct running total when
> using --related and limiting to a subset of transactions?  Perhaps by
> using --limit instead of --display, or some kind of fancy format
> string...?  Nothing I have been able to come up with seems to work.
>
> Thanks for any insights you can provide!
>
> Best,
> Richard
>

I, too, would like to find out the answer to this question.  Still
haven't been able to find a reliable answer on showing *full*
transactions of an account that give me a running balance of the
specific account being queried.

-- 
    Rudd-O
    http://rudd-o.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.

Reply via email to