Hi John, Thank you for responding. Yes, I had come across the D directive earlier as well.
If it can be done without too much work, I think an --amount-format option would be very useful, since it would save trouble adding a currency symbol for every amount, and especially when you just want to work with a default currency. On another level, I just want to say that Ledger has been on my To Better Do list for several years now, having bookmarked it for a deep dive. I've been using Quicken, Quickbooks, some custom double entry software I wrote myself, and for the last five years, an open source program called TurboCash. The problem with TurboCash is that it is also Windows based and I have to fire up a vm everytime I use it. Ledger-cli is a little gem, and is just perfect on Linux, especially now that I've come to love the command line and work close to the data. I don't think you can get closer to the data than Ledger-cli! I already like the great flexibility ledger-cli provides for generating your own reports, and for now I only have to wrap my mind around ledger-cli's use of negative numbers. So far I get it with regard to income sources but have been a bit befuddled when it comes to things like accounts payable, receivable and retained earnings at the time of setting up initial balances. I just need to chew upon it for a little while. What I'm really excited about is this - I think ledger-cli is the perfect tool to teach accounting with. So much can be learned by trial and error while trying to absorb fundamental accounting concepts, and the overhead is just ledger-cli, boost, the command line and a text editor. I'm going to be exploring this avenue. Bottomline John, thank you for a super, super application! Kinley On Thursday, April 16, 2015 at 7:55:42 AM UTC+6, John Wiegley wrote: > > >>>>> kinleyd <[email protected] <javascript:>> writes: > > > I've been through the ledger3 manual as well as googled as best I could, > but I > > find ledger's formatting approach is not very well described or > illustratated > > with examples. Or, it's right there in plain sight and I'm missing it. > > > For example, how do I get comma formatted numbers? How does one set an > > option like --balance-format to do this? > > You actually don't have any control over how numbers are formatted from > within > a format statement! I just never thought of that, although it would not be > hard at all to add. > > Rather, Ledger pays attention to how you USE a currency, like $, and tries > to > echo back amounts to you in the same way that it saw you use them. The > "D" > directive (for (d)efault settings), allows you to specify the "shape" > amounts > should generally take, like: > > D $1,000.00 > > At the moment that is the best I can offer, although having a formatting > function like "format_amount" would be both fairly easy to do, and a good > idea. > > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
