Fix GetAllOperations bug and new user (GenerateMonth) bug
This commit is contained in:
@@ -102,10 +102,12 @@ void KissCount::SetAccountAmount(int month, int year, wxString accountId, double
|
||||
_db->SetAccountAmount(month, year, accountId, amount);
|
||||
}
|
||||
|
||||
void KissCount::AddAccount(Account ac)
|
||||
wxString KissCount::AddAccount(Account ac)
|
||||
{
|
||||
ac.id = _db->AddAccount(_user, ac);
|
||||
_user->_accounts.push_back(ac);
|
||||
|
||||
return ac.id;
|
||||
}
|
||||
|
||||
void KissCount::UpdateAccount(Account ac)
|
||||
@@ -230,7 +232,6 @@ void KissCount::NewUser(wxString name)
|
||||
curDate.SetToCurrent();
|
||||
|
||||
AddAccount(ac);
|
||||
|
||||
_db->GenerateMonth(_user, -1, -1, (int)curDate.GetMonth(), curDate.GetYear());
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ class KissCount
|
||||
|
||||
double GetAccountAmount(wxString id, int month, int year);
|
||||
void SetAccountAmount(int month, int year, wxString accountId, double value);
|
||||
void AddAccount(Account ac);
|
||||
wxString AddAccount(Account ac);
|
||||
void UpdateAccount(Account ac);
|
||||
void DeleteAccount(Account ac);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user