修改订单排程功能为通用方法,同时增加动态判断计划时间是否与获取cnc程序的时间冲突功能,如果冲突,时间自动延后1h;优化gantt显示

This commit is contained in:
mgw
2023-11-14 12:21:08 +08:00
parent 77535fa70e
commit daeae46820
3 changed files with 144 additions and 78 deletions

View File

@@ -95,7 +95,7 @@ class ResMrpBomMo(models.Model):
limit=1,
order='volume desc'
)
logging.info('get_bom-vals:%s' % embryo_has)
# logging.info('get_bom-vals:%s' % embryo_has)
if embryo_has:
rate_of_waste = ((embryo_has.volume - product.model_volume) % embryo_has.volume) * 100
if rate_of_waste <= 20: