fix: do_in new_count为0时wm.delete
This commit is contained in:
parent
c84ea3bdef
commit
4a6aabd860
|
@ -131,7 +131,7 @@ def do_in(mio: MIO):
|
|||
wm.update_by = do_user
|
||||
wm.save()
|
||||
elif new_count == 0:
|
||||
pass
|
||||
wm.delete()
|
||||
else:
|
||||
raise ParseError('车间物料不足')
|
||||
|
||||
|
|
Loading…
Reference in New Issue