From b9601e012c18a72c8ab808a6043203eb255e89cf Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 19 Jan 2020 03:31:53 +0800 Subject: [PATCH] Bug 797584 - New-owner - bill amount field links to wrong account Amounts formerly linked to the 'transfer' split which is not reliably determined. Link to the APAR split instead. Note whereby a payment spans multiple invoices, it'll link to the first APAR payment split. --- gnucash/report/business-reports/new-owner-report.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm index c724dfc68f..57aea2856f 100644 --- a/gnucash/report/business-reports/new-owner-report.scm +++ b/gnucash/report/business-reports/new-owner-report.scm @@ -745,7 +745,7 @@ (and (< orig-value 0) orig-value) (and (>= orig-value 0) orig-value) (invoice->sale invoice) (invoice->tax invoice) - (txn->transfer-split txn) + split link-option (cond ((and (txn-is-invoice? txn) (eq? link-option 'simple))