diff --git a/apps/inm/services.py b/apps/inm/services.py index ab5d56e2..6b44b74e 100644 --- a/apps/inm/services.py +++ b/apps/inm/services.py @@ -95,7 +95,7 @@ def do_out(item: MIOItem, is_reverse: bool = False): else: mb.save() - if material.into_wm: + if xmaterial.into_wm: # 领到车间库存(或工段) wm, new_create = WMaterial.objects.get_or_create( batch=xbatch, material=xmaterial, @@ -175,7 +175,7 @@ def do_in(item: MIOItem): raise ParseError("存在非正数!") xbatchs.append(xbatch) - if material.into_wm: + if xmaterial.into_wm: if xwm: wm = xwm else: