fix: 组合件入库后未添加count的bug
This commit is contained in:
parent
18546d48f5
commit
a79717abd8
|
@ -204,6 +204,8 @@ def do_in(item: MIOItem):
|
||||||
batch=item.batch,
|
batch=item.batch,
|
||||||
defaults={"count": 0, "production_dept": production_dept}
|
defaults={"count": 0, "production_dept": production_dept}
|
||||||
)
|
)
|
||||||
|
mb.count = mb.count + item.count
|
||||||
|
mb.save()
|
||||||
if not is_created:
|
if not is_created:
|
||||||
raise ParseError("该批次组合件已存在")
|
raise ParseError("该批次组合件已存在")
|
||||||
for mia in mias:
|
for mia in mias:
|
||||||
|
|
Loading…
Reference in New Issue