Re: investment reporting

2021-10-24 Thread John Wiegley
The gain option may not work with -M or -X

On Sun, Oct 24, 2021, at 11:54 AM, lipp f wrote:
> It does not work, throws different errors:
> 
> $ ledger reg  Assets:Investment  -p 2021 -X USD -M --gain
> While calling function 'get_at (CAD 97.45000
> -2,234.66891242292 USD, 1)':
> Error: Attempting to get argument at index 1 from a balance
> 
> $ ledger reg  Assets:Investment  -p 2019 -X USD -M --gain
> While adding (7.0 TLT {122.650 USD} [2019-04-12], 7.0 TLT 
> {122.650 USD} [2019-04-12]) to (353.020 USD, 353.020 
> USD, CAD -104.8
> -440.13695725000 USD):
> Error: Cannot add sequences of different lengths
> On Sunday, October 24, 2021 at 12:49:43 PM UTC-4 jwie...@gmail.com wrote:
>> > "lf" == lipp f  writes: 
>> 
>> lf> Assuming that all the investments are in Assets:Investment, how do I get 
>> a 
>> lf> weekly / monthly report for realized / unrealized gains? 
>> 
>> lf> I have tryed 
>> 
>> lf> $ ledger reg Assets:Investment -p 2021 -X USD -M --unrealized 
>> 
>> lf> and it is not showing the proper numbers. 
>> 
>> Try --gain 
>> 
>> John 
> 
> 
> -- 
> 
> --- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ledger-cli/3cf4f1cd-cea6-4937-94ae-5ec756e12ed9n%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/4fb9e6d4-4ad3-44ce-8705-ba84d2354c80%40www.fastmail.com.


ledger-cli xml2html XLST

2021-10-24 Thread Markus Katharina Brechtel


Hi!

I created an ledger-cli xml2html XLST.

This XLST produces a browsable html page out of the xml files created by 
ledger xml.

It might be used in the future to create a ledger html output.

It is not perfect currently, but it is good for my purposes and i might 
improve it in the future. I thought i would share it for others to be able 
to find it too.

Here is my merge request: https://github.com/ledger/ledger/pull/2068

tbm told me to mention it here to ask if you find it interesting.

Kind regards

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/b685e4e0-1b75-42a4-8922-998cbe6b3ed8n%40googlegroups.com.


Re: investment reporting

2021-10-24 Thread lipp f
It does not work, throws different errors:

$ ledger reg  Assets:Investment  -p 2021 -X USD -M --gain
While calling function 'get_at (CAD 97.45000
-2,234.66891242292 USD, 1)':
Error: Attempting to get argument at index 1 from a balance

$ ledger reg  Assets:Investment  -p 2019 -X USD -M --gain
While adding (7.0 TLT {122.650 USD} [2019-04-12], 7.0 TLT 
{122.650 USD} [2019-04-12]) to (353.020 USD, 
353.020 USD, CAD -104.8
-440.13695725000 USD):
Error: Cannot add sequences of different lengths
On Sunday, October 24, 2021 at 12:49:43 PM UTC-4 jwie...@gmail.com wrote:

> > "lf" == lipp f  writes:
>
> lf> Assuming that all the investments are in Assets:Investment, how do I 
> get a
> lf> weekly / monthly report for realized / unrealized gains?
>
> lf> I have tryed 
>
> lf> $ ledger reg Assets:Investment -p 2021 -X USD -M --unrealized
>
> lf> and it is not showing the proper numbers.
>
> Try --gain
>
> John
>

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/3cf4f1cd-cea6-4937-94ae-5ec756e12ed9n%40googlegroups.com.


Re: investment reporting

2021-10-24 Thread John Wiegley
> "lf" == lipp f  writes:

lf> Assuming that all the investments are in Assets:Investment, how do I get a
lf> weekly / monthly report for realized / unrealized gains?

lf> I have tryed 

lf> $ ledger reg Assets:Investment -p 2021 -X USD -M --unrealized

lf> and it is not showing the proper numbers.

Try --gain

John

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m2fssq2wrm.fsf%40newartisans.com.