mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[assistant-stock-transaction] don't add dr/cr if the entry is NaN
This commit is contained in:
parent
b7cac5c301
commit
a93d77de64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user