Show stats for current month even if next month has not been generated

Bug : Update all panels after generating/deleting month
This commit is contained in:
2011-01-29 20:53:44 +01:00
parent a2990ede8a
commit 1151daf861
7 changed files with 68 additions and 5 deletions

View File

@@ -93,6 +93,11 @@ double KissCount::GetAccountAmount(const wxString& id, int month, int year)
return _db->GetAccountAmount(id, month, year);
}
double KissCount::CalcAccountAmount(const wxString& id, int month, int year, bool* had_values)
{
return _db->CalcAccountAmount(id, month, year, had_values);
}
void KissCount::UpdateOperation(Operation& op)
{
// Unlink

View File

@@ -60,6 +60,8 @@ public:
double GetAccountAmount(const wxString& id, int month, int year);
void SetAccountAmount(int month, int year, const wxString& accountId, double value);
double CalcAccountAmount(const wxString& id, int month, int year, bool* had_values);
wxString AddAccount(Account& ac);
void UpdateAccount(Account& ac);
void DeleteAccount(Account& ac);