From 767cfb18e290690001a86273261d4d876c7bb127 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 16 May 2025 09:05:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BD=A6=E9=97=B4=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E4=B8=8D=E8=B6=B3=E6=8F=90=E7=A4=BA=E6=9B=B4=E5=87=86=E7=A1=AE?= =?UTF-8?q?2?= 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 37c82579..966af454 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -482,7 +482,7 @@ def mlog_revert(mlog: Mlog, user: User, now: Union[datetime.datetime, None]): f'{str(mo_ma)}-{mo_batch}-存在多个相同批次!') wm.count = wm.count - mo_count if wm.count < 0: - raise ParseError('车间库存不足, 产物无法回退') + raise ParseError(f'{wm.batch} 车间库存不足, 产物无法回退') elif wm.count >= 0: if isinstance(mlog_or_b, Mlogb): if mlog_or_b.number_from == wm.number_from: