Fix bugs in account/category modification/deletion
Fix some strings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user