From 8994b39917f3bb042d7957dd7d0f9c1e5c3da961 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 30 May 2025 09:56:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20batches=5Fto=5Flimit=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96bug?= 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 a44431d6..9b0f3dc2 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -756,7 +756,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, elif mtype == Handover.H_DIV: if handover.wm is None: raise ParseError('拆批请选择车间库存') - batches_to_limit = BatchLog.batches_to(batch=handover.wm.batch) + batches_to_limit = BatchLog.batches_to(batch=handover.wm.batch)["batches"] source_b, _ = BatchSt.g_create(batch=handover.wm.batch) for item in handoverb_list: wmId, xcount, handover_or_b = item