From d3dcb65e59bcf6cf5c8490a4b160fd64e10d02bd Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Thu, 9 Jan 2003 03:19:17 +0000 Subject: [PATCH] * src/business/business-core/gncInvoice.c: actually apply a payment to the proper transfer account. Fixes bug #102893 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7804 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 3 +++ src/business/business-core/gncInvoice.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c6f51141fb..9c2eb53ec4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * apply patch to use Euclid's algo for gnc_numeric_reduce more fixes for #95474 + * src/business/business-core/gncInvoice.c: actually apply + a payment to the proper transfer account. Fixes bug #102893 + 2003-01-08 Christian Stimming * po/ru.po: Updated very complete (!) Russian translation by diff --git a/src/business/business-core/gncInvoice.c b/src/business/business-core/gncInvoice.c index 85dfcf9d2b..4cf6b6dc06 100644 --- a/src/business/business-core/gncInvoice.c +++ b/src/business/business-core/gncInvoice.c @@ -980,9 +980,9 @@ gncOwnerApplyPayment (GncOwner *owner, Account *posted_acc, Account *xfer_acc, xaccSplitSetMemo (split, memo); xaccSplitSetBaseValue (split, reverse ? amount : gnc_numeric_neg (amount), commodity); - xaccAccountBeginEdit (posted_acc); - xaccAccountInsertSplit (posted_acc, split); - xaccAccountCommitEdit (posted_acc); + xaccAccountBeginEdit (xfer_acc); + xaccAccountInsertSplit (xfer_acc, split); + xaccAccountCommitEdit (xfer_acc); xaccTransAppendSplit (txn, split); /* Now, find all "open" lots in the posting account for this