One more question.

I notice that this command double counts some income. For instance if I have a 
transfer from Assets:Bank1 to Assets:Bank2, the income is counted when it 
enters bank1, and again when it goes from bank1 to bank2.

I know I can just do a query on income, but I'm trying to capture all money 
flowing into an account (other than from other assets). For example, I want to 
capture the equity:opening balance account as well.

I know I can do:

ledger bal ^income ^equity

But again the problem is, my opening balance also includes a transfer to a 
liability, so that will throw off my amount.

Basically I want a way to get the amount of all inflows to all assets, which 
was not transferred from another asset.

In other words, a simple way of saying, “This is all the money I received this 
month,” but also including opening balances from prior to using Ledger.

So if when starting ledger I had $500, but receive $1000, I want to get $1500 
as the answer.

Brandon

> On Jul 23, 2018, at 7:37 AM, Martin Michlmayr <t...@cyrius.com> wrote:
> 
> * Brandon Olivares <programmer2...@gmail.com> [2018-07-23 04:10]:
>> ledger -b 2018-07-01 -e 2018-07-23 reg ^Assets:Bank
>> 
>> But that shows me total of incoming and outgoing amounts. I just
>> want to see the total incoming. How can I do that?
> 
> ledger -b 2018-07-01 -e 2018-07-23 reg ^Assets:Bank and expr "amount > 0"
> 
> -- 
> 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 ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to