Reports don't render if currency prefix has special chars
jGnash Personal Finance
Brought to you by:
ccavanaugh
If the prefix for a currency includes Special Pattern Characters as defined for java.text.DecimalFormat the Jasper reports (like Profit/Loss) fail to render. jGnucash should escape those characters before using the prefix in a pattern for formatting numbers
What currency specifically is causing the problem? Trying to reproduce the problem at my end.
Thanks
Swiss Francs (CHF) is causing the problem for me. If I use the Prefix "SFr." (See screenshot) the reports don't work. If I remove the "." from the Prefix everything works fine. I think the problem happens with any currency if the user uses special chars as prefix-
Thank you, I am able to reproduce the problem now. I will start looking for a solution.
Fix is SVN. Solution was to pass a Format object instead of a String based pattern to the column builder in DynamicJasper. It then correctly handles currency formating internally.
Thanks again for the bug report and diagnosis of the problem. The root cause would not have been obvious.
Regards,
Craig