I am experimenting with ledger and I am trying to add new command line 
option or a directive (whichever is easier). How to add a filter that shall 
round an amount to desired precision by rounding after performing required 
calculations (such as calculation values using lot price) on per 
transaction basis. 
For example , this posting.
2014/06/18  TEST
 A                               10 AAA  @ 10.1234 EUR
 A                               10 BBB  @ 10.5692 EUR
 C
if we set a precision of 2
this should be calculated as 10*10.1234 = 101.234 rounded to 101.23 and 
10*10.5692 rounded to 105.69  and final result is 101.23+105.69=206.92 EUR 
debited from C.

My question are :-
1. How does option layer works? What is it structure?
2. What are chain pre-post and chain-post handlers? 
3. How to add a new '--' option to command line or add a directive?
Please provide at least a rough outline.

-- 

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