feat: 添加物料明细与批次不匹配的校验2
This commit is contained in:
parent
df4b062209
commit
6b423c80eb
|
@ -1276,7 +1276,7 @@ class HandoverSerializer(CustomModelSerializer):
|
||||||
item["count"] = len(handoverbw)
|
item["count"] = len(handoverbw)
|
||||||
t_count += len(handoverbw)
|
t_count += len(handoverbw)
|
||||||
wprIds = [i["wpr"].id for i in handoverbw]
|
wprIds = [i["wpr"].id for i in handoverbw]
|
||||||
wm_ids = Wpr.objects.filter(id__in=wprIds).values_list("wm_id", flat=True)
|
wm_ids = list(Wpr.objects.filter(id__in=wprIds).values_list("wm_id", flat=True).distinct())
|
||||||
if len(wm_ids) == 1 and wm_ids[0] == wm.id:
|
if len(wm_ids) == 1 and wm_ids[0] == wm.id:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue