Hi Thierry, Sorry, I should have been more clear in my first post. But that bug report seems to be the exact same problem I meant. Only difference, is mine seems to fail both ways.
Here's an example so others on this board don't need to check the link: commodity RMB nomarket default C 1.000000 BTC = 1000000 bits P 2015/4/20 10:10:10 BTC 1000.00 RMB 2014-01-01 Test Income -200000 bits Income -100 RMB myAccount running `-B balance` will now show that I have 200000 bits and 100 RMB, when the expected output is 300 RMB (200 + 100) On Saturday, April 25, 2015 at 12:45:24 AM UTC+8, thierry wrote: > > Hi, > > It always help to show results you got, and the expected one. > Anyway, this looks like bug 1066 > http://bugs.ledger-cli.org/show_bug.cgi?id=1066 > > Thierry > > On Tuesday, April 21, 2015 at 3:45:54 PM UTC+2, Bryan Becker wrote: >> >> I have the following code as a test: >> >> commodity RMB >> format ¥1,000,000.00 >> nomarket >> default >> >> C 1.000000 BTC = 1000000 bits >> >> P 2015/4/20 10:10:10 BTC 1380.19 RMB >> >> I dont have a lot of bitcoin, so my normal output is shown in bits >> instead of BTC. But when I run balance with the '-V' or '-B' flag, it >> doesn't convert transactions in 'bits', and so my output still consists of >> RMB and bits. >> >> Is there anyway to fix this, while still being allowed to enter both >> 'bits' and 'BTC' into transactions? >> >> >> >> >> (Also, as a side question which I may open as a different topic - is >> there anyway to control the output of RMB when 'bal' or other is run? In >> the above example, I attempt to default to 2 decimal precision and display >> with the ¥ symbol, but ledger still outputs using RMB and 6 decimal >> precision) >> > -- --- 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.
