This commit is contained in:
2010-05-27 21:09:02 +02:00
parent f73c80fc6a
commit 1f50e15d39
7 changed files with 130 additions and 80 deletions

View File

@@ -223,7 +223,7 @@ void Database::LoadYear(User* user, int year)
op.day = set.GetInt(_("day"));
op.month = set.GetInt(_("month"));
op.year = set.GetInt(_("year"));
op.amount = set.GetInt(_("amount"));
op.amount = set.GetDouble(_("amount"));
op.description = set.GetAsString(_("description"));
op.category = set.GetAsString(_("category"));
op.fix_cost = set.GetBool(_("fix_cost"));

View File

@@ -27,3 +27,8 @@ wxString User::GetAccountName(wxString accountId)
return _("Unknown") ;
return _accounts[accountId].name;
}
int User::GetCategoriesNumber()
{
return _preferences._categories.size();
}

View File

@@ -10,7 +10,7 @@ struct operation {
unsigned int day;
unsigned int month;
unsigned int year;
int amount;
double amount;
wxString description;
wxString category;
bool fix_cost;
@@ -40,6 +40,7 @@ public:
wxString GetCategoryName(wxString catId);
wxString GetAccountName(wxString accountId);
int GetCategoriesNumber();
};
#endif