fix: do_in bug

This commit is contained in:
caoqianming 2025-12-10 15:12:24 +08:00
parent 18c66eee7a
commit 4bea3d973e
1 changed files with 2 additions and 2 deletions

View File

@ -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: