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:
|
else:
|
||||||
mb.save()
|
mb.save()
|
||||||
|
|
||||||
if material.into_wm:
|
if xmaterial.into_wm:
|
||||||
# 领到车间库存(或工段)
|
# 领到车间库存(或工段)
|
||||||
wm, new_create = WMaterial.objects.get_or_create(
|
wm, new_create = WMaterial.objects.get_or_create(
|
||||||
batch=xbatch, material=xmaterial,
|
batch=xbatch, material=xmaterial,
|
||||||
|
|
@ -175,7 +175,7 @@ def do_in(item: MIOItem):
|
||||||
raise ParseError("存在非正数!")
|
raise ParseError("存在非正数!")
|
||||||
|
|
||||||
xbatchs.append(xbatch)
|
xbatchs.append(xbatch)
|
||||||
if material.into_wm:
|
if xmaterial.into_wm:
|
||||||
if xwm:
|
if xwm:
|
||||||
wm = xwm
|
wm = xwm
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue