fix: 返修交接后物料状态都变为返修品
This commit is contained in:
parent
88bf75baaf
commit
cd294bc53c
|
@ -772,10 +772,10 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime,
|
||||||
# 返修交接
|
# 返修交接
|
||||||
recive_mgroup = handover.recive_mgroup
|
recive_mgroup = handover.recive_mgroup
|
||||||
if recive_mgroup:
|
if recive_mgroup:
|
||||||
if recive_mgroup.process == Process.PRO_TEST:
|
# if recive_mgroup.process.type == Process.PRO_TEST:
|
||||||
wm_state = WMaterial.WM_REPAIRED
|
# wm_state = WMaterial.WM_REPAIRED
|
||||||
else:
|
# else:
|
||||||
wm_state = WMaterial.WM_REPAIR
|
wm_state = WMaterial.WM_REPAIR
|
||||||
wm_to, _ = WMaterial.objects.get_or_create(
|
wm_to, _ = WMaterial.objects.get_or_create(
|
||||||
batch=batch,
|
batch=batch,
|
||||||
material=material,
|
material=material,
|
||||||
|
|
Loading…
Reference in New Issue