Hi Dave!

Dave Peticolas wrote:

<...>

> First, as far as displaying the currency symbol in the balance,
> I would prefer to make this configurable rather than take it out
> altogether. Yes, you can turn on the currency column, but that
> takes up a lot more space than printing the currency with the
> balance & total.
> 
> As far as printing the symbol correctly for a given currency,
> I was envisioning the following sort of solution:
> 
> The amount printing routines (xaccPrintAmount & xaccSPrintAmount)
> would be extended with an argument for the currency code string.
> If the string was NULL, it would default to using the locale
> currency. That would make it a little easier to modify the
> existing code on a gradual basis. Also, when you are printing,
> e.g., a quantity of shares there is no need for one.

Take a look at my last EURO patch. I did a first quick hack
of exactly this. I extended xaccSPrintAmountGeneral.
I needed xaccSPrintAmountGeneral because for EURO 2 decimal
places are required. But if you are in an italian locale
you get Lira and no decimal places...

 Herbert.

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to