fix: do_in 的bug

This commit is contained in:
caoqianming 2025-02-08 14:49:30 +08:00
parent 8838227919
commit 33f162fa3a
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def do_in(item: MIOItem):
生产入库后更新车间物料
"""
mio = item.mio
if mio.wm and mio.wm.defect is not None:
if item.wm and item.wm.defect is not None:
raise ParseError("不合格物料无法入库")
belong_dept = mio.belong_dept
mgroup = mio.mgroup