feat: 采购入库支持检验2
This commit is contained in:
parent
8bcd6b4f69
commit
2f259bd5f3
|
@ -310,11 +310,15 @@ class InmService:
|
|||
for material, warehouse, batch, change_count, defect, mioitem in m_list:
|
||||
if change_count <= 0:
|
||||
continue
|
||||
state = WMaterial.WM_OK
|
||||
if defect:
|
||||
state = WMaterial.WM_NOTOK
|
||||
mb, _ = MaterialBatch.objects.get_or_create(
|
||||
material=material,
|
||||
warehouse=warehouse,
|
||||
batch=batch,
|
||||
defect=defect,
|
||||
state=state,
|
||||
defaults=ddict
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue