Fix bugs in account/category modification/deletion

Fix some strings
This commit is contained in:
2010-11-29 20:11:11 +01:00
parent c88c3b4836
commit 765483ff15
8 changed files with 188 additions and 151 deletions

View File

@@ -155,9 +155,15 @@ void KissCount::SetAccountAmount(int month, int year, const wxString& accountId,
wxString KissCount::AddAccount(Account& ac)
{
wxDateTime curDate;
ac.id = _db->AddAccount(_user, ac);
_user->_accounts.push_back(ac);
curDate.SetToCurrent();
SetAccountAmount((int)curDate.GetMonth(), curDate.GetYear(), ac.id, 0.0);
return ac.id;
}