diff options
Diffstat (limited to 'kmymoney2/mymoney/mymoneyforecast.cpp')
-rw-r--r-- | kmymoney2/mymoney/mymoneyforecast.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kmymoney2/mymoney/mymoneyforecast.cpp b/kmymoney2/mymoney/mymoneyforecast.cpp index 59a565d..e0a79af 100644 --- a/kmymoney2/mymoney/mymoneyforecast.cpp +++ b/kmymoney2/mymoney/mymoneyforecast.cpp @@ -134,8 +134,8 @@ void MyMoneyForecast::pastTransactions() //workaround for stock accounts which have faulty opening dates TQDate openingDate; if(acc.accountType() == MyMoneyAccount::Stock) { - MyMoneyAccount tqparentAccount = file->account(acc.tqparentAccountId()); - openingDate = tqparentAccount.openingDate(); + MyMoneyAccount parentAccount = file->account(acc.parentAccountId()); + openingDate = parentAccount.openingDate(); } else { openingDate = acc.openingDate(); } @@ -234,8 +234,8 @@ void MyMoneyForecast::calculateAccountTrendList() TQDate openingDate; if(acc.accountType() == MyMoneyAccount::Stock) { - MyMoneyAccount tqparentAccount = file->account(acc.tqparentAccountId()); - openingDate = tqparentAccount.openingDate(); + MyMoneyAccount parentAccount = file->account(acc.parentAccountId()); + openingDate = parentAccount.openingDate(); } else { openingDate = acc.openingDate(); } @@ -1206,8 +1206,8 @@ void MyMoneyForecast::setStartingBalance(const MyMoneyAccount &acc) //FIXME workaround for stock opening dates TQDate openingDate; if(acc.accountType() == MyMoneyAccount::Stock) { - MyMoneyAccount tqparentAccount = file->account(acc.tqparentAccountId()); - openingDate = tqparentAccount.openingDate(); + MyMoneyAccount parentAccount = file->account(acc.parentAccountId()); + openingDate = parentAccount.openingDate(); } else { openingDate = acc.openingDate(); } |