On Wed, Dec 28, 2016, at 04:30 PM, Kumar Appaiah wrote:

> Hi.
>
> Please consider the following file:
>
> 2016/01/01 * Salary    Bank    10,000.00 INR    Income:Salary    -
> 7,000.00 INR    Income:Allowances    -3,000.00 INR
>
> 2016/02/01 * Salary    Bank    8,000.00 INR    Income:Salary    -
> 6,000.00 INR    Income:Allowances    -2,000.00 INR
>
> 2016/03/01 * Salary    Bank    9,000.00 INR    Income:Salary    -
> 6,500.00 INR    Income:Allowances    -2,500.00 INR
>
> Now, I'd like to view a register containing ONLY the total of Incomes.
> For example:
>
> # ledger -f test.dat reg Income
>
> This will display the Income:Salary and Income:Allowances separately.
> Is there a way that I can get them combined? In other words, a
> register that would display -10,000, -8,000 and -9,000? And using
> "Bank" is not an option, since some entries may have money going
> elsewhere as well.
>
> Please let me know if this is clear.


I am not enamored of this option, but:



$ ledger -f test.dat r  Income -r

16-Jan-01 Salary                                  Bank
10,000.00 INR           10,000.00 INR
16-Feb-01 Salary                                  Bank
8,000.00 INR           18,000.00 INR
16-Mar-01 Salary                                  Bank
9,000.00 INR           27,000.00 INR




regards,



bex

-- 

--- 
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