feat: update_mb_item defect处理更严谨
This commit is contained in:
parent
2524feca72
commit
65726e967f
|
@ -398,7 +398,7 @@ class InmService:
|
|||
if change_count < 0:
|
||||
raise ParseError("存在负数!")
|
||||
state = WMaterial.WM_OK
|
||||
if defect:
|
||||
if defect and defect.okcate in [Defect.DEFECT_NOTOK]:
|
||||
state = WMaterial.WM_NOTOK
|
||||
mb, _ = MaterialBatch.objects.get_or_create(
|
||||
material=material,
|
||||
|
|
Loading…
Reference in New Issue