After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 330577 - [patch] add display options to advanced-portfolio report
[patch] add display options to advanced-portfolio report
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Reports
1.9.x
Other Linux
: Normal enhancement
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2006-02-09 21:29 UTC by Andrew Sackville-West
Modified: 2018-06-29 20:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to add display options to advance-portfolio report (9.25 KB, patch)
2006-02-09 21:33 UTC, Andrew Sackville-West
needs-work Details | Review
reworked diffs for the previously submitted patch (20.74 KB, patch)
2006-02-14 22:54 UTC, Andrew Sackville-West
committed Details | Review

Description Andrew Sackville-West 2006-02-09 21:29:59 UTC
add display options to allow selection of columns to display in the advanced portfolio report. Allows user to select whether to display ticker symbol, exchange listing, number of shares and prices of shares. Also moved "share decimal places" to display options page as it seemed to make more sense there (IMHO). Couldn't figure out how to grey-out "share decimal places" when "show number of shares" is deselected... 

patch to follow


A
Comment 1 Andrew Sackville-West 2006-02-09 21:33:52 UTC
Created attachment 59028 [details] [review]
patch to add display options to advance-portfolio report
Comment 2 Andrew Sackville-West 2006-02-09 22:05:15 UTC
okay, so the "share decimal places" on the portfolio report is also on the general tab, should I move this one back for consistency? or does it matter?

A
Comment 3 Christian Stimming 2006-02-10 09:29:26 UTC
I'd suggest a "share decimal places" option belongs on a "Display" tab in the other report as well.

As for "grey out": I don't think there is any easy way to achieve this in the current option system. 

Thanks for the patch.
Comment 4 Andrew Sackville-West 2006-02-10 17:22:45 UTC
(In reply to comment #3)
> I'd suggest a "share decimal places" option belongs on a "Display" tab in the
> other report as well.

That would be the ONLY display tab option for the other report, but I'm happy to make that change.
> 
> As for "grey out": I don't think there is any easy way to achieve this in the
> current option system. 

It works in the transaction report with something*-callback-or-other* but I haven't looked into that beast yet. I was hoping someone would know it and pipe up. ;)

> 
> Thanks for the patch.
> 
:-)

A

Comment 5 Derek Atkins 2006-02-12 21:52:29 UTC
The grey-out is done via a complex-boolean-option and a callback using gnc:option-db-set-option-selectable-by-name -- take a look at the current fancy-invoice for hints.

I've recently applied a number of changes to the advanced-portfolio so I suggest you rev the patch based on the current code, please?
Comment 6 Andrew Sackville-West 2006-02-14 22:52:50 UTC
well, that was fun. now attaching patch that includes a rework of this issue along with a fix of http://bugzilla.gnome.org/show_bug.cgi?id=314554 so that monster is now working as well. the newly attached patch does BOTH and assuming it all works as expected, both bugs could be closed. However, I don't work in multiple currencies so whether Mike's patch as fixed by me actually does what its supposed to do is unknown. it does however now run and gives expected results in my small set of test data.

A
Comment 7 Andrew Sackville-West 2006-02-14 22:54:51 UTC
Created attachment 59380 [details] [review]
reworked diffs for the previously submitted patch

here it is...
Comment 8 Derek Atkins 2006-02-15 00:01:45 UTC
Thanks.  Applied (slightly fixed, per email to -devel) to SVN as r13264.
Comment 9 John Ralls 2018-06-29 20:57:03 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=330577. Please update any external references or bookmarks.