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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user