[assistant-stock-transaction] don't add dr/cr if the entry is NaN

This commit is contained in:
Christopher Lam 2023-09-18 15:10:20 +08:00
parent b7cac5c301
commit a93d77de64

View File

@ -1348,6 +1348,8 @@ 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