Re: Having Problems With XML

2011-11-02 Thread Ryan May
Hi John, I'm unsure how else an XML reader would build up an accounts tree without additional information. Given the following list of accounts: Assets Chequing Short-Term Savings How would a reader determine the account tree? Is the correct tree: Assets Assets:Chequing Assets:Savings

Re: Controlling the precision displayed in amounts

2011-11-02 Thread Craig Earls
Actually quantity isn't rounding at all, as expected. It is giving me full precision, sometime 9 or 10 digits. Here is an example: ledger bal Investments --collapse --limit commodity=='VIFSX' --format %(quantity(strip(display_total))) %(quantity(market(total))) 123.1234567891

Re: Controlling the precision displayed in amounts

2011-11-02 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Actually quantity isn't rounding at all, as expected.  It is giving me full precision, sometime 9 or 10 digits.  Here is an example: ledger bal Investments --collapse  --limit commodity=='VIFSX' --format %(quantity(strip

Re: Having Problems With XML

2011-11-02 Thread John Wiegley
Ryan May ryan-wtxsuusx66j3fq9qlvq...@public.gmane.org writes: Hi John, I'm unsure how else an XML reader would build up an accounts tree without additional information. Given the following list of accounts: Oh, I had thought the account tags were nested? If not, then fullname will be

Re: What is the actual --print-format used in 2.6?

2011-11-02 Thread John Wiegley
markscottwright markscottwright-re5jqeeqqe8avxtiumw...@public.gmane.org writes: The one in the manual doesn't seem to be right. It should in the source code, I think in report.h. John

Re: What is the actual --print-format used in 2.6?

2011-11-02 Thread Craig Earls
Actually, from what I can glean, print doesn't have a format. it simply iterates through the fields in the xact and uses the built-in print methods for each field. On Wed, Nov 2, 2011 at 10:53, John Wiegley jwieg...@gmail.com wrote: markscottwright

Re: What is the actual --print-format used in 2.6?

2011-11-02 Thread Craig Earls
Sorry, didn't notice the version 2.6 question... On Wed, Nov 2, 2011 at 15:45, Craig Earls ender...@gmail.com wrote: Actually, from what I can glean, print doesn't have a format. it simply iterates through the fields in the xact and uses the built-in print methods for each field. On Wed,

Re: Controlling the precision displayed in amounts

2011-11-02 Thread Craig Earls
Well, I don't really need rounding in the value side, but formatting control would be nice in a number of places. On Wed, Nov 2, 2011 at 10:34, John Wiegley jwieg...@gmail.com wrote: Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Actually quantity isn't rounding at