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