GnuCash
Contact   Instructions
Bug 797462 - gnc:strify reports the amount and value incorrectly. (with fix)
Summary: gnc:strify reports the amount and value incorrectly. (with fix)
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Reports (show other bugs)
Version: 3.7
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: reports
QA Contact: reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-18 01:32 EDT by Steven Bruniges
Modified: 2019-10-18 07:23 EDT (History)
3 users (show)

See Also:


Attachments

Description Steven Bruniges 2019-10-18 01:32:22 EDT
The define for split->str in gnc:strify in report-utilities.scm reverses the 3rd and 4th parameters (monetary values), and so presents the amount as a value and vice-versa.

specifically in rows 1085 and 1090 the xaccSplitGetAmount and XaccSplitGetValue need to exchanged.
Comment 1 Christopher Lam 2019-10-18 01:55:00 EDT
Ah you mean the format-string does not match amount/value and should be "Split<d:~a,acc:~a,val:~a,amt:~a>" instead. Good catch. Will fix tonight.

This gnc:strify function is really a development tool and should probably be moved somewhere else appropriate.
Comment 2 Christopher Lam 2019-10-18 07:23:28 EDT
in maint https://github.com/Gnucash/gnucash/commit/c7c76c2e for 3.8 onwards

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