fix: handover拆批请选择车间库存2
This commit is contained in:
parent
22b6b1305f
commit
c791bde5be
|
@ -967,7 +967,7 @@ class HandoverSerializer(CustomModelSerializer):
|
|||
|
||||
wm:WMaterial = attrs.get('wm', None)
|
||||
handoverb = attrs.get('handoverb', [])
|
||||
if wm:
|
||||
if wm and not handoverb:
|
||||
attrs['handoverb'] = [{"wm": wm, "count": attrs["count"] }]
|
||||
handoverb = attrs['handoverb']
|
||||
attrs['batch'] = wm.batch
|
||||
|
|
Loading…
Reference in New Issue