summaryrefslogtreecommitdiff
path: root/gnucash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnucash.cc')
-rw-r--r--gnucash.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnucash.cc b/gnucash.cc
index fb768cd8..19b870b9 100644
--- a/gnucash.cc
+++ b/gnucash.cc
@@ -203,6 +203,7 @@ static void dataHandler(void *userData, const char *s, int len)
std::string value = curr_quant + " " + (*i).second->comm->symbol;
xact->cost = create_amount(value.c_str(), curr_value);
+ xact->acct->balance.credit(xact->cost);
break;
}