From ec13b8b166d382ca6a894f84d8e8d722c16d8afb Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 29 Dec 2025 14:41:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=AD=A3=E5=B8=B8=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81new=5Fwm=E4=B8=94=E6=94=AF=E6=8C=81=E4=B8=8D?= =?UTF-8?q?=E5=90=88=E6=A0=BC=E5=93=81?= 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 b9dea08d..d560efc8 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -785,7 +785,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, if handover.type == Handover.H_NORMAL: if mtype == Handover.H_MERGE and handover.new_wm: wm_to = handover.new_wm - if wm_to.state != WMaterial.WM_OK or wm_to.material != wm_from.material or wm_to.defect != wm_from.defect: + if wm_to.state != wm_from.state or wm_to.material != wm_from.material or wm_to.defect != wm_from.defect: raise ParseError("正常合并到的车间库存状态或物料异常") else: wm_to, _ = WMaterial.objects.get_or_create(