Installed it afresh on Ubuntu 14.04 [where ledger was not installed
earlier] and see the same behavior
Haven't done any customizations/overriding settings.

root@:/tmp# ledger reg -f data.ledger -H -p "2016" --collapse --columns=72
-M Expenses:Fuel
16-Jul-01 - 16-Jul-31        <Total>                   1443$        721$

root@:/tmp# ledger --version
Ledger 3.1.1-20160111, the command-line accounting tool

Copyright (c) 2003-2016, John Wiegley.  All rights reserved.

This program is made available under the terms of the BSD Public License.
See LICENSE file included with the distribution for details and disclaimer.

root@:/tmp# cat data.ledger
2016-07-17 IndianOilPetrolBunk
    Equity:Fuel:Car    7.49 Ltr
    Liabilities:CreditCard:Axis     -500$
2016-07-17 KMTracking
    Expenses:Fuel:Car   3.1 Ltr
    Equity:Fuel:Car     -3.1 Ltr
2016-07-19 TrackFuelExpenses
    Expenses:Fuel:Bike  7.12 Ltr
    Equity:Fuel:Bike    -7.12 Ltr
2016-07-19 IndianOilPetrolBunk
    Equity:Fuel:Bike    8.5 Ltr
    Liabilities:CreditCard:Citi     -600$

root@:/tmp# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"

root@:/tmp# ledger reg -f data.ledger -H -p "2016" --columns=72 -M
Expenses:Fuel
16-Jul-01 - 16-Jul-31        Expenses:Fuel:Bike         503$        503$
                             <Adjustment>                -1$        502$
                             Expenses:Fuel:Car          219$        721$

May be it has some thing to do with the ledger version am using.
Was facing some issues in downgrading ti to version 3.0 to test.

Can you please cross-check once if it has anything to do with the current
version am using.
Any pointers on the steps to proceed further to debug this?

Thanks,
Naga Kiran

On Wed, Sep 14, 2016 at 9:22 AM, John Wiegley <[email protected]> wrote:

> >>>>> "NKK" == Naga Kiran K <[email protected]> writes:
>
> NKK> $ ledger reg -f ~/TextFiles/report.ledger -H -p "2016" *--collapse* -M
> NKK> Expenses:Fuel
> NKK> 16-Jul-01 - 16-Jul-31           <Total>                       *1443$*
> NKK>   721$
>
> Do you have any other settings active over there?  I'm seeing the output
> you
> expected:
>
> --8<---------------cut here---------------start------------->8---
> 20:52:06 Vulcan:~/dl $ ledger reg -f data.ledger -H -p "2016" --collapse
> --columns=72 -M Expenses:Fuel
> 16-Jul-01 - 16-Jul-31        <Total>                    721$        721$
> --8<---------------cut here---------------end--------------->8---
>
> --
> John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
> http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2
>



-- 
Regards,
Naga Kiran

-- 

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