Commit c19ac9fb authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in machine.releaseOperator

parent fc042153
......@@ -1196,7 +1196,7 @@ class Machine(CoreObject):
if station:
if issubclass(station.__class__, CoreObject):
operator.schedule[-1]["exitTime"] = self.env.now
elif not operator.schedule[-1]["station"].get("id", None)== "off-shift":
elif not operator.schedule[-1]["station"].get("id", None) in ["off-shift","on-break"]:
operator.schedule[-1]["exitTime"] = self.env.now
# if the operator becomes unavailable
if (not self.currentOperator.onShift) or self.currentOperator.onBreak:
......
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