diff --git a/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp b/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp index 3c1496bcde2..354d2b6c891 100644 --- a/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp +++ b/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp @@ -758,15 +758,15 @@ void GncPreSplit::create_split (std::shared_ptr draft_trans) auto value = GncNumeric(); auto trans_curr = xaccTransGetCurrency(draft_trans->trans); auto acct_comm = xaccAccountGetCommodity(account); - if (gnc_commodity_equiv(trans_curr, acct_comm)) - value = amount; - else if (m_value || m_value_neg) + if (m_value || m_value_neg) { if (m_value) value += *m_value; if (m_value_neg) value -= *m_value_neg; } + else if (gnc_commodity_equiv(trans_curr, acct_comm)) + value = amount; else if (tamount) value = -*tamount; else if (m_price)