fix: update_mb_item在检验时只做负数校验

This commit is contained in:
caoqianming 2025-06-04 16:40:33 +08:00
parent 265a15c9fc
commit 014b48e135
1 changed files with 2 additions and 2 deletions

View File

@ -384,8 +384,8 @@ class InmService:
xbatchs = []
for material, warehouse, batch, change_count, defect, mioitem in m_list:
xbatchs.append(batch)
if change_count <= 0:
raise ParseError("存在非正数!")
if change_count < 0:
raise ParseError("存在数!")
state = WMaterial.WM_OK
if defect:
state = WMaterial.WM_NOTOK