Skip to content

Commit

Permalink
bug fix on date effective skills
Browse files Browse the repository at this point in the history
  • Loading branch information
jdetaeye committed Feb 11, 2022
1 parent da6fa6c commit 07c9091
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions doc/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ The main target is to refresh the component stack:
These changes will be made gradual over a couple of releases. For instance, 6.20.0 will
support both Ubuntu 18 as well as Ubuntu 20.

6.20.1 (2022/2/11)
==================

.. rubric:: Production planning

- | Bug fix: the effectivity dates were not verified correctly in some corner
cases.
6.20.0 (2022/1/22)
==================

Expand Down
2 changes: 1 addition & 1 deletion src/model/operationplan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,7 @@ double OperationPlan::getEfficiency(Date d) const {
for (Resource::memberRecursiveIterator mmbr(h->getResource());
!mmbr.empty(); ++mmbr) {
if (!mmbr->isGroup() &&
(!h->getSkill() || mmbr->hasSkill(h->getSkill()))) {
(!h->getSkill() || mmbr->hasSkill(h->getSkill(), d))) {
auto my_eff =
mmbr->getEfficiencyCalendar()
? mmbr->getEfficiencyCalendar()->getValue(d ? d : getStart())
Expand Down

0 comments on commit 07c9091

Please sign in to comment.