feat: mlog submit 添加一个注释

This commit is contained in:
caoqianming 2024-11-24 17:03:39 +08:00
parent a484c0021d
commit 12d77e53b6
1 changed files with 2 additions and 0 deletions

View File

@ -198,6 +198,8 @@ def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]):
notok_sign = f.name.replace('count_n_', '')
m_outs_list.append( (item.material_out, item.batch if item.batch else mlog.batch, getattr(item, f.name), mlog.count_real_eweight, notok_sign, item))
stored_notok = True
# 这里有一个漏洞在产出物为兄弟件的情况下不合格品的数量是记录在mlog上的
# 而不是mlogb上以上的额外处理就没有效果了, 不过光子不记录不合格品
else:
m_outs_list = [(material_out, mlog.batch, mlog.count_ok, mlog.count_real_eweight, None, mlog)]
# 一次填写的暂时不处理不合格品