Commit eba4481b authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Fix display and sort order of schedule

The date displayed and the sort order did not work properly when the
option 'always execute on last day of the month' was set. This change
fixes it.
parent 3b208ad9
Pipeline #90760 passed with stage
in 17 minutes and 29 seconds
......@@ -236,7 +236,7 @@ QVariant SchedulesModel::data(const QModelIndex& idx, int role) const
case Column::NextDueDate:
if (!schedule.isFinished()) {
rc = MyMoneyUtils::formatDate(schedule.nextDueDate());
rc = MyMoneyUtils::formatDate(schedule.adjustedNextDueDate());
} else {
rc = i18nc("Finished schedule", "Finished");
}
......@@ -311,7 +311,7 @@ QVariant SchedulesModel::data(const QModelIndex& idx, int role) const
break;
case eMyMoney::Model::ScheduleNextDueDateRole:
rc = schedule.nextDueDate();
rc = schedule.adjustedNextDueDate();
break;
case eMyMoney::Model::ScheduleFrequencyRole:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment