fix: do_in bug
This commit is contained in:
parent
18c66eee7a
commit
4bea3d973e
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue