修改排程逻辑
This commit is contained in:
@@ -319,6 +319,9 @@ class sf_production_plan(models.Model):
|
||||
def calculate_plan_time(self, item, workorder_list):
|
||||
"""
|
||||
根据CNC工单的时间去计算之前的其他工单的开始结束时间
|
||||
param:
|
||||
item: 基准工单(根据该工单的开始结束时间去计算其他工单的开始结束时间)
|
||||
workorder_list: 需排程的工单列表
|
||||
"""
|
||||
item_position = 0
|
||||
for index, workorder in enumerate(workorder_list):
|
||||
|
||||
Reference in New Issue
Block a user