fix: 生产入库时存入生产车间
This commit is contained in:
parent
295edf65d2
commit
000ea6fc27
|
@ -169,7 +169,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