Simplify UpdateNextMonths function
Add "create_if_not_exsits" to Database::GetAccountAmount
This commit is contained in:
@@ -99,9 +99,9 @@ User* KissCount::GetUser()
|
||||
return _user;
|
||||
}
|
||||
|
||||
int KissCount::GetAccountAmount(int id, int month, int year, bool* had_value)
|
||||
int KissCount::GetAccountAmount(int id, int month, int year, bool* had_value, bool create_if_not_exsits)
|
||||
{
|
||||
return _db->GetAccountAmount(id, month, year, had_value);
|
||||
return _db->GetAccountAmount(id, month, year, had_value, create_if_not_exsits);
|
||||
}
|
||||
|
||||
int KissCount::CalcAccountAmount(int id, int month, int year, bool* had_values)
|
||||
|
||||
Reference in New Issue
Block a user