Hello Sam,

You said "i get unexpected output", but I am not sure what is your expected 
result in plain English.

Anyway, instead of --yearly, I tried with --daily --weekly --monthly 
--quarterly. And I got inconsistent results. I believe there is a link with bug 
#787 <http://bugs.ledger-cli.org/show_bug.cgi?id=787>, even if the test 
case is not the same. I do understand the answer from John to this bug, but 
I would still vote for my described expected results. This bug belongs to 
one (out my my two) issue with ledger, and I had to find tricks and develop 
scripts to post-process ledger output.

Regards,
Thierry


On Tuesday, February 3, 2015 at 8:02:33 PM UTC+1, Sam wrote:
>
> Hi,
>
> Given a sample input file, `t`:
>
> 2014/10/31 * ABC Dividend
>     Assets:Brokerage:ESSP                 0.8751 ABC @ $57.1948
>     ; Action: Dividend
>     Income:Dividend:Taxable
>
> 2014/12/31 * ABC Buy
>     Assets:Brokerage:ESSP                10.1197 ABC @ $59.8833
>     ; Action: Purchase
>     Income:Paycheck:ESSP
>
> 2015/01/31 * ABC Dividend
>     Assets:Brokerage:ESSP                 1.0434 ABC @ $52.1859
>     ; Action: Dividend
>     Income:Dividend:Taxable
>
> I am able to run yearly report as expected:
>
> ledger -f x reg assets:brokerage:essp --limit "commodity=='ABC'" -Y 
>
> 14-Jan-01 - 14-Dec-31           Assets:Brokerage:ESSP   10.9948 ABC 
>  10.9948 ABC
> 15-Jan-01 - 15-Dec-31           Assets:Brokerage:ESSP    1.0434 ABC 
>  12.0382 ABC
>
> However, when I add the --prices tag i get unexpected output (looks like 
> only the current year is having its price applied):
>
> ledger -f x reg assets:brokerage:essp --limit "commodity=='ABC'" -Y *-I* 
>
> 15-Jan-01 - 15-Dec-31           Assets:Brokerage:ESSP  $54.45076806 
> $54.45076806
>                                                                     
>  10.9948 ABC
>
> Any insights into what the problem may be with my setup/report?
>
> Thanks,
>

-- 

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