gnucash maint: Bug 798060 - Invoices are missing on Customer report after upgrade

Christopher Lam clam at code.gnucash.org
Tue Jan 12 07:18:32 EST 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/d054fe20 (commit)
	from  https://github.com/Gnucash/gnucash/commit/fee436c5 (commit)



commit d054fe20477d82ae1cbf4523cf1702f4fb93b4a2
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Jan 7 22:41:29 2021 +0800

    Bug 798060 - Invoices are missing on Customer report after upgrade
    
    8c21e895 was incomplete... whereby txns were hidden because their
    qdates were earlier than start date, the totals were accumulated yet
    they were not marked as seen, and could have been processed already.

diff --git a/gnucash/report/reports/standard/new-owner-report.scm b/gnucash/report/reports/standard/new-owner-report.scm
index e5be21bfa..7301309e9 100644
--- a/gnucash/report/reports/standard/new-owner-report.scm
+++ b/gnucash/report/reports/standard/new-owner-report.scm
@@ -790,6 +790,7 @@
      ((< (xaccTransGetDate (xaccSplitGetParent (car splits))) start-date)
       (let* ((txn (xaccSplitGetParent (car splits)))
              (value (AP-negate (xaccTransGetAccountAmount txn acc))))
+        (hash-set! seen-txns txn #t)
         (lp printed? odd-row? (cdr splits) invalid-splits (+ total value)
             debit credit tax sale)))
 



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



More information about the gnucash-changes mailing list