GNOME Bugzilla – Bug 573645
SWIG binding for GncTaxTableGetEntries is wrong
Last modified: 2018-06-29 22:18:56 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
Created attachment 130033 [details] Test case: Gnucash report demonstrating the bug
Created attachment 130034 [details] [review] Patch
Committed as r18056 in trunk
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.