Bug on GenerateMonth with different years
This commit is contained in:
parent
ac96255b3c
commit
b30604fffe
|
@ -296,8 +296,8 @@ void KissCount::GenerateMonth(int monthFrom, int yearFrom, int monthTo, int year
|
||||||
}
|
}
|
||||||
|
|
||||||
// Re Generate parents
|
// Re Generate parents
|
||||||
for(it = (*_user->_operations[yearFrom])[monthTo].begin();
|
for(it = (*_user->_operations[yearTo])[monthTo].begin();
|
||||||
it != (*_user->_operations[yearFrom])[monthTo].end();
|
it != (*_user->_operations[yearTo])[monthTo].end();
|
||||||
it++)
|
it++)
|
||||||
{
|
{
|
||||||
if (it->parent.Length())
|
if (it->parent.Length())
|
||||||
|
@ -305,8 +305,8 @@ void KissCount::GenerateMonth(int monthFrom, int yearFrom, int monthTo, int year
|
||||||
it->parent = meta[it->parent];
|
it->parent = meta[it->parent];
|
||||||
UpdateOperation(*it);
|
UpdateOperation(*it);
|
||||||
|
|
||||||
for(it2 = (*_user->_operations[yearFrom])[monthTo].begin();
|
for(it2 = (*_user->_operations[yearTo])[monthTo].begin();
|
||||||
it2 != (*_user->_operations[yearFrom])[monthTo].end();
|
it2 != (*_user->_operations[yearTo])[monthTo].end();
|
||||||
it2++)
|
it2++)
|
||||||
if (it2->id == it->parent)
|
if (it2->id == it->parent)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user