Add virtual accounts (potential bugs)
This commit is contained in:
@@ -104,7 +104,7 @@ void KissCount::UpdateOperation(Operation& op)
|
||||
op.transfert = wxT("");
|
||||
_user->LinkOrUnlinkOperation(op);
|
||||
|
||||
_db->UpdateOperation(op);
|
||||
_db->UpdateOperation(_user, op);
|
||||
|
||||
// Link
|
||||
_user->LinkOrUnlinkOperation(op);
|
||||
@@ -127,7 +127,7 @@ void KissCount::DeleteOperation(Operation& op)
|
||||
op.transfert = wxT("");
|
||||
_user->LinkOrUnlinkOperation(op);
|
||||
}
|
||||
_db->DeleteOperation(op);
|
||||
_db->DeleteOperation(_user, op);
|
||||
}
|
||||
|
||||
void KissCount::DeleteOperations(int month, int year)
|
||||
@@ -310,6 +310,7 @@ void KissCount::GenerateMonth(int monthFrom, int yearFrom, int monthTo, int year
|
||||
op.checked = false;
|
||||
op.id = AddOperation(op);
|
||||
op.childs.clear();
|
||||
op._virtual = false;
|
||||
if (op.meta)
|
||||
meta[it->id] = op.id;
|
||||
(*_user->_operations[yearTo])[monthTo].push_back(op);
|
||||
@@ -494,6 +495,11 @@ std::map<wxString, double>* KissCount::GetNotChecked(int month, int year)
|
||||
return _db->GetNotChecked(_user, month, year);
|
||||
}
|
||||
|
||||
std::map<wxString, double>* KissCount::GetVirtualAmount(int month, int year)
|
||||
{
|
||||
return _db->GetVirtualAmount(_user, month, year);
|
||||
}
|
||||
|
||||
wxFont KissCount::ExtractFont(wxString strFont)
|
||||
{
|
||||
long int pos, pointSize, family, style, weight;
|
||||
|
@@ -97,6 +97,7 @@ public:
|
||||
std::map<wxString, double>* categories);
|
||||
|
||||
std::map<wxString, double>* GetNotChecked(int month, int year);
|
||||
std::map<wxString, double>* GetVirtualAmount(int month, int year);
|
||||
|
||||
static wxFont ExtractFont(wxString strFont);
|
||||
static wxString CompactFont(const wxFont& font);
|
||||
|
Reference in New Issue
Block a user