GnuCash
Contact   Instructions
Bug 795729 - Advanced Portfolio Report - Percentage rates not displaying leading zeroes
Summary: Advanced Portfolio Report - Percentage rates not displaying leading zeroes
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Reports (show other bugs)
Version: 3.1
Hardware: Other Linux
: Normal normal
Target Milestone: future
Assignee: reports
QA Contact: reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-01 17:20 EDT by Richard Ullger
Modified: 2019-02-18 08:49 EST (History)
3 users (show)

See Also:


Attachments

Description Richard Ullger 2018-05-01 17:20:44 EDT
The 'Rate of Gain' and 'Rate of Return' columns display percentages > -1 and < 1 without the leading zero.

For example, a percentage of -0.10% is displayed as -.10% and 0.10% is displayed as .10%.

This is a regression which was working correctly in 2.6.21.
Comment 1 Christopher Lam 2019-02-04 23:16:08 EST
Try edit advanced-portfolio.scm and amend the string ~0,2f as follows (replace all of them)

(format #f "~0,2f%" ...

to

(format #f "~,2f%" ...
Comment 2 Richard Ullger 2019-02-05 07:19:10 EST
Thanks Christopher, that mod fixes the issue.
Comment 3 Christopher Lam 2019-02-18 08:49:53 EST
fixed in repository. will be available in next release. thank you for reporting.

Note You need to log in before you can comment on or make changes to this bug.