gnucash maint: Bug 797418 - In budget report, column with Actual Totals for Liabilities and Income are reversed

Christopher Lam clam at code.gnucash.org
Fri Sep 20 00:28:34 EDT 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/0ab0d23b (commit)
	from  https://github.com/Gnucash/gnucash/commit/656d2718 (commit)



commit 0ab0d23b00a674bb655e1d67cb3eb8f5055f7e06
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Sep 20 11:12:37 2019 +0800

    Bug 797418 - In budget report, column with Actual Totals for Liabilities and Income are reversed
    
    budget.scm had some cleanup whereby totals were accumulated but are
    now re-retrieved. Forgot to reverse actuals for some account signs
    reversals.

diff --git a/gnucash/report/standard-reports/budget.scm b/gnucash/report/standard-reports/budget.scm
index 5a994d6d8..a13b56677 100644
--- a/gnucash/report/standard-reports/budget.scm
+++ b/gnucash/report/standard-reports/budget.scm
@@ -396,6 +396,7 @@
                                budget acct total-periods))
                    (act-total (gnc:get-account-periodlist-actual-value
                                budget acct total-periods))
+                   (act-total (if reverse-balance? (- act-total) act-total))
                    (dif-total (if income-acct?
                                   (- act-total bgt-total)
                                   (- bgt-total act-total))))



Summary of changes:
 gnucash/report/standard-reports/budget.scm | 1 +
 1 file changed, 1 insertion(+)



More information about the gnucash-changes mailing list