fix: 生产入库时存入生产车间

This commit is contained in:
caoqianming 2025-04-25 13:20:16 +08:00
parent a13ac84ccb
commit dd0d6751c1
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ def do_in(item: MIOItem):
else:
raise ParseError(f'{str(xmaterial)}-{xbatch}车间物料不足')
wm_production_dept = wm.mgroup.belong_dept if wm.mgroup else None
wm_production_dept = wm.mgroup.belong_dept if wm.mgroup else wm.belong_dept
if production_dept is None:
production_dept = wm_production_dept
elif wm_production_dept and production_dept != wm_production_dept: