gnucash stable: Revert "[assistant-stock-transaction] don't add dr/cr if the entry is NaN"

Christopher Lam clam at code.gnucash.org
Mon Sep 18 03:42:45 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/c930fd07 (commit)
	from  https://github.com/Gnucash/gnucash/commit/a93d77de (commit)



commit c930fd07d51b5e9d42e4eab684d5513c9898315b
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Sep 18 15:42:12 2023 +0800

    Revert "[assistant-stock-transaction] don't add dr/cr if the entry is NaN"
    
    This reverts commit a93d77de64fb9390d7d554c25c7c6aeca09bcdd0. It makes
    tests fail, and shouldn't.

diff --git a/gnucash/gnome/assistant-stock-transaction.cpp b/gnucash/gnome/assistant-stock-transaction.cpp
index cc062aa5f5..a3de8994d3 100644
--- a/gnucash/gnome/assistant-stock-transaction.cpp
+++ b/gnucash/gnome/assistant-stock-transaction.cpp
@@ -1348,8 +1348,6 @@ StockAssistantModel::generate_list_of_splits() {
 
     std::for_each(m_list_of_splits.begin(), m_list_of_splits.end(),
                     [&debit, &credit](auto& entry) {
-                        if (gnc_numeric_check (entry->amount()))
-                            return;
                         if (entry->debit_side())
                             debit += entry->value();
                         else



Summary of changes:
 gnucash/gnome/assistant-stock-transaction.cpp | 2 --
 1 file changed, 2 deletions(-)



More information about the gnucash-changes mailing list