Commit 62a9d57f authored by Jérome Perrin's avatar Jérome Perrin

NewOrderExecutionPlugin: do not display "with new order" if there is no new order

parent d274ace2
...@@ -124,6 +124,8 @@ class NewOrderExecutionPlugin(ExecutionPlugin): ...@@ -124,6 +124,8 @@ class NewOrderExecutionPlugin(ExecutionPlugin):
data["result"]["result_list"][-1]["score"] = 0 data["result"]["result_list"][-1]["score"] = 0
data["result"]["result_list"][-1]["key"] = "before_new_order" data["result"]["result_list"][-1]["key"] = "before_new_order"
data["result"]["result_list"][-1]["name"] = "Before New Order" data["result"]["result_list"][-1]["name"] = "Before New Order"
if [order for order in data['input']['BOM']['productionOrders'] if "new" in order['id'].lower()]:
# with the new order # with the new order
data["result"]["result_list"].extend(self.runOneScenario(data)['result']['result_list']) data["result"]["result_list"].extend(self.runOneScenario(data)['result']['result_list'])
data["result"]["result_list"][-1]["score"] = 0 data["result"]["result_list"][-1]["score"] = 0
......
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