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 573645 - SWIG binding for GncTaxTableGetEntries is wrong
SWIG binding for GncTaxTableGetEntries is wrong
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Business
git-master
Other All
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks:
 
 
Reported: 2009-03-01 16:46 UTC by Chris Dennis
Modified: 2018-06-29 22:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case: Gnucash report demonstrating the bug (4.49 KB, text/x-scheme)
2009-03-04 16:44 UTC, Chris Dennis
  Details
Patch (2.30 KB, patch)
2009-03-04 16:44 UTC, Chris Dennis
none Details | Review

Description Chris Dennis 2009-03-01 16:46:58 UTC
Please describe the problem:
Reports that try to access tax table details via (gncTaxTableGetEntries) get a pointer that shows up as "#<swig-pointer PriceList * ...>" instead of a list of GncTaxTableEntry objects.

Steps to reproduce:
1. Download my test report from http://www.fbcs.co.uk/files/gnucash/taxtablebug.scm
2. Install it in the usual way by making an entry in .gnucash/config.user
3. Run the report for an invoice that uses a taxtable.


Actual results:
The report includes:
  ttentries: #<swig-pointer PriceList * 9a11c10>
  That looks like a PriceList instead of a TTEntry!

Expected results:
The report should include:
  ttentries: (#<swig-pointer GncTaxTableEntry * 94a0f00>)
  That seems to be a proper TTEntry


Does this happen every time?
Yes

Other information:
My patch is available at http://www.fbcs.co.uk/files/gnucash/taxtable.patch.txt
Comment 1 Chris Dennis 2009-03-04 16:44:04 UTC
Created attachment 130033 [details]
Test case: Gnucash report demonstrating the bug
Comment 2 Chris Dennis 2009-03-04 16:44:32 UTC
Created attachment 130034 [details] [review]
Patch
Comment 3 Phil Longstaff 2009-04-24 00:52:44 UTC
Committed as r18056 in trunk
Comment 4 John Ralls 2018-06-29 22:18:56 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=573645. Please update any external references or bookmarks.