gnucash stable: bugfix xaccTransGetTxnType: avoid returning TXN_TYPE_LINK incorrectly
Christopher Lam
clam at code.gnucash.org
Wed Jun 14 09:09:47 EDT 2023
Updated via https://github.com/Gnucash/gnucash/commit/4a60e01f (commit)
from https://github.com/Gnucash/gnucash/commit/853791cb (commit)
commit 4a60e01fcd6b3fae6acaa2547b60d5aeb74f0dc4
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Tue Jun 13 21:00:58 2023 +0800
bugfix xaccTransGetTxnType: avoid returning TXN_TYPE_LINK incorrectly
A TXN_TYPE_PAYMENT will have non-APAR splits; a TXN_TYPE_LINK will not
have non-APAR splits. This bug manifests as a regular TXN_TYPE_PAYMENT
transaction being later voided being incorrectly changed to
TXN_TYPE_LINK.
Summary of changes:
libgnucash/engine/Transaction.c | 9 ++++-----
libgnucash/engine/test/utest-Invoice.c | 6 ++++++
2 files changed, 10 insertions(+), 5 deletions(-)
More information about the gnucash-patches
mailing list