* 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
This commit is contained in:
Derek Atkins
2003-01-09 03:19:17 +00:00
parent 2020629a0e
commit d3dcb65e59
2 changed files with 6 additions and 3 deletions

View File

@@ -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 <stimming@tuhh.de>
* po/ru.po: Updated very complete (!) Russian translation by

View File

@@ -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