fix: mlogbinserializer处理返工的错误
This commit is contained in:
parent
2663f20953
commit
2941ebd7d6
|
@ -562,7 +562,7 @@ class MlogbInSerializer(CustomModelSerializer):
|
||||||
attrs['batch'] = wm_in.batch
|
attrs['batch'] = wm_in.batch
|
||||||
attrs["batch_ofrom"] = wm_in.batch_ofrom
|
attrs["batch_ofrom"] = wm_in.batch_ofrom
|
||||||
attrs["material_ofrom"] = wm_in.material_ofrom
|
attrs["material_ofrom"] = wm_in.material_ofrom
|
||||||
if route.batch_bind and mtask is not None:
|
if route and route.batch_bind and mtask is not None:
|
||||||
if not WMaterial.mat_in_qs(mtask).filter(id=wm_in.id).exists():
|
if not WMaterial.mat_in_qs(mtask).filter(id=wm_in.id).exists():
|
||||||
raise ParseError('该车间库存非本任务使用')
|
raise ParseError('该车间库存非本任务使用')
|
||||||
return attrs
|
return attrs
|
||||||
|
|
Loading…
Reference in New Issue