Bug 795155 - CSV import does not distinguish between deposit and withdrawal

This commit is contained in:
Geert Janssens 2018-04-14 12:05:30 +02:00
parent d567ee1049
commit a8c17c2078

View File

@ -624,7 +624,7 @@ void GncPreSplit::create_split (Transaction* trans)
if (m_withdrawal)
withdrawal = *m_withdrawal;
amount = deposit + withdrawal;
amount = deposit - withdrawal;
/* Add a split with the cumulative amount value. */
trans_add_split (trans, account, amount, m_action, m_memo, m_rec_state, m_rec_date, m_price);