gnucash stable: Bug 799820 - Stock Assistant incorrectly records Capital Loss

Christopher Lam clam at code.gnucash.org
Sat Oct 17 22:34:45 EDT 2026


Updated	 via  https://github.com/Gnucash/gnucash/commit/53d34ccd (commit)
	from  https://github.com/Gnucash/gnucash/commit/c1622611 (commit)



commit 53d34ccdb34e6b8292020ae3e243d74f98f13756
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Sep 24 21:28:41 2026 +0800

    Bug 799820 - Stock Assistant incorrectly records Capital Loss
    
    Because the set_value() called for every "changed" event with a
    negative amount, and m_debit_side was being toggled repeatedly. Set
    m_debit_side according to the sign of amount cf the field dr/cr side.



Summary of changes:
 gnucash/gnome/assistant-stock-transaction.cpp | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)



More information about the gnucash-patches mailing list