gnucash maint: Bug 797462 - gnc:strify reports the amount and value incorrectly

Christopher Lam clam at code.gnucash.org
Fri Oct 18 07:20:58 EDT 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/c7c76c2e (commit)
	from  https://github.com/Gnucash/gnucash/commit/1a8c2f28 (commit)



commit c7c76c2e0b4869d1af6e0c8eef225898798ab821
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Oct 18 18:29:16 2019 +0800

    Bug 797462 - gnc:strify reports the amount and value incorrectly
    
    amt and val were incorrectly labelled. swap to match label.

diff --git a/gnucash/report/report-system/report-utilities.scm b/gnucash/report/report-system/report-utilities.scm
index 973608af9..c7f506f27 100644
--- a/gnucash/report/report-system/report-utilities.scm
+++ b/gnucash/report/report-system/report-utilities.scm
@@ -1113,15 +1113,15 @@ flawed. see report-utilities.scm. please update reports.")
       (format #f "Split<d:~a,acc:~a,amt:~a,val:~a>"
               (qof-print-date (xaccTransGetDate txn))
               (xaccAccountGetName (xaccSplitGetAccount spl))
-              (gnc:monetary->string
-               (gnc:make-gnc-monetary
-                (xaccTransGetCurrency txn)
-                (xaccSplitGetValue spl)))
               (gnc:monetary->string
                (gnc:make-gnc-monetary
                 (xaccAccountGetCommodity
                  (xaccSplitGetAccount spl))
-                (xaccSplitGetAmount spl))))))
+                (xaccSplitGetAmount spl)))
+              (gnc:monetary->string
+               (gnc:make-gnc-monetary
+                (xaccTransGetCurrency txn)
+                (xaccSplitGetValue spl))))))
   (define (trans->str txn)
     (format #f "Txn<d:~a>" (qof-print-date (xaccTransGetDate txn))))
   (define (account->str acc)



Summary of changes:
 gnucash/report/report-system/report-utilities.scm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)



More information about the gnucash-changes mailing list