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