wip
This commit is contained in:
@@ -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"));
|
||||
|
@@ -27,3 +27,8 @@ wxString User::GetAccountName(wxString accountId)
|
||||
return _("Unknown") ;
|
||||
return _accounts[accountId].name;
|
||||
}
|
||||
|
||||
int User::GetCategoriesNumber()
|
||||
{
|
||||
return _preferences._categories.size();
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user