From: <vo...@us...> - 2013-12-11 11:25:48
|
Revision: 5548 http://sourceforge.net/p/moneymanagerex/code/5548 Author: vomikan Date: 2013-12-11 11:25:43 +0000 (Wed, 11 Dec 2013) Log Message: ----------- fix for account balance Modified Paths: -------------- branches/version_1.0.0.0/src/mmhomepagepanel.cpp Modified: branches/version_1.0.0.0/src/mmhomepagepanel.cpp =================================================================== --- branches/version_1.0.0.0/src/mmhomepagepanel.cpp 2013-12-11 10:09:49 UTC (rev 5547) +++ branches/version_1.0.0.0/src/mmhomepagepanel.cpp 2013-12-11 11:25:43 UTC (rev 5548) @@ -213,7 +213,7 @@ if (Model_Checking::status(trx) == Model_Checking::FOLLOWUP)++this->countFollowUp_; if (Model_Checking::status(trx) != Model_Checking::VOID_) { - double amount = (Model_Checking::type(trx) == Model_Checking::DEPOSIT ? trx.TRANSAMOUNT : -trx.TRANSAMOUNT); + double amount = (Model_Checking::balance(trx, trx.ACCOUNTID)); double reconciled_amount = (Model_Checking::status(trx) == Model_Checking::RECONCILED ? amount : 0); accountStats[trx.ACCOUNTID].first += reconciled_amount; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |