fix: do_in new_count为0时wm.delete

This commit is contained in:
caoqianming 2024-01-12 16:45:07 +08:00
parent c84ea3bdef
commit 4a6aabd860
1 changed files with 1 additions and 1 deletions

View File

@ -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('车间物料不足')