fix: 生产入库时存入生产车间
This commit is contained in:
parent
a13ac84ccb
commit
dd0d6751c1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue