From 4a6aabd860d4d46555d8093e7a0ceb32d0f61dac Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 12 Jan 2024 16:45:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20do=5Fin=20new=5Fcount=E4=B8=BA0=E6=97=B6?= =?UTF-8?q?wm.delete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 35405228..15f01671 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -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('车间物料不足')