Fix Bug : find meta operations when search previous operations (same description)

Fix Bug : Don't update meta amount when removing one operation
Update locales
This commit is contained in:
2010-12-02 19:12:27 +01:00
parent 84bd6d8b42
commit 5a50a53b7a
5 changed files with 186 additions and 168 deletions

View File

@@ -412,6 +412,7 @@ bool KissCount::SearchPreviousOperation(Operation* res, Operation& op, int month
wxDateTime* date ;
//wxDateSpan threeMonths(0, 3); Not working :(
std::vector<wxString> v;
int i;
month -= 3;
if (month < 0)
@@ -432,11 +433,17 @@ bool KissCount::SearchPreviousOperation(Operation* res, Operation& op, int month
return false;
}
*res = (*operations)[operations->size()-1];
for(i=operations->size()-1; i>=0; i--)
if (!(*operations)[i].meta)
{
*res = (*operations)[i];
delete operations;
return true;
}
delete operations;
return true;
return false;
}
void KissCount::GetStats(int monthFrom, int yearFrom, int monthTo, int yearTo,