r22975 - gnucash/branches/2.4/src/report/standard-reports - [22968] Bug #584869 net change line in general journal report broken

Geert Janssens gjanssens at code.gnucash.org
Fri May 10 15:19:30 EDT 2013


Author: gjanssens
Date: 2013-05-10 15:19:30 -0400 (Fri, 10 May 2013)
New Revision: 22975
Trac: http://svn.gnucash.org/trac/changeset/22975

Modified:
   gnucash/branches/2.4/src/report/standard-reports/register.scm
Log:
[22968] Bug #584869 net change line in general journal report broken

Do not show any totals in the General Journal report.

According to

http://www.accountingtools.com/general-journal
and
http://accountophobia.blogspot.de/2012/06/general-journal.html

it is not the idea of the General Journal to show totals but
only list transactions.

This patch makes use of the ledger-type? flag and suppresses
the output of the Net Changes accordingly.

By that, the General Journal will not show Totals, but the
Account Report still does.

Author:    Carsten Rinke <carsten.rinke at gmx.de>

Modified: gnucash/branches/2.4/src/report/standard-reports/register.scm
===================================================================
--- gnucash/branches/2.4/src/report/standard-reports/register.scm	2013-05-10 19:19:17 UTC (rev 22974)
+++ gnucash/branches/2.4/src/report/standard-reports/register.scm	2013-05-10 19:19:30 UTC (rev 22975)
@@ -550,8 +550,10 @@
                                   debit-value "grand-total" #t)
                 (add-subtotal-row (_ "Total Value Credits") leader table used-columns
                                   credit-value "grand-total" #t)))
-          (add-subtotal-row (_ "Net Change") leader table used-columns
+          (if ledger-type?
+            (add-subtotal-row (_ "Net Change") leader table used-columns
 			    total-collector "grand-total" #f)
+          )
           (add-subtotal-row (_ "Value Change") leader table used-columns
                             total-value "grand-total" #t))
 



More information about the gnucash-changes mailing list