KissCount

KissCount Commit Details

Date:2014-02-08 12:21:07 (6 years 5 months ago)
Author:Grégory Soutadé
Branch:dev, master, qt5
Commit:34bbd08de66e3c6f0b01453d5b84774b0d86f59a
Parents: 957570510619079d068c3f4dd097470e1e5ab42d
Message:Fix a bug in generate month : if the next month has less days than the first, but there are operations on non existings days, use last day of new month.

Changes:
Msrc/controller/KissCount.cpp (1 diff)

File differences

src/controller/KissCount.cpp
285285
286286
287287
288
289
290
291
292
293
294
288295
289296
290297
op._virtual = false;
if (op.meta)
meta[it->id] = op.id;
if (!QDate::isValid(op.year, op.month+1, op.day+1))
{
QDate d(op.year, op.month+1, 1);
op.day = d.daysInMonth()-1;
}
(*_user->_operations[yearTo])[monthTo].push_back(op);
}

Archive Download the corresponding diff file