fix: 个到个的拆分bug9
This commit is contained in:
parent
42f5c20f86
commit
9489f80b3f
|
@ -590,7 +590,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
|
||||||
update_dict(m_dict, {"count_real": d_count_real, "count_ok": d_count_ok}))
|
update_dict(m_dict, {"count_real": d_count_real, "count_ok": d_count_ok}))
|
||||||
if material_in.tracking == Material.MA_TRACKING_SINGLE and material_out.tracking == Material.MA_TRACKING_SINGLE:
|
if material_in.tracking == Material.MA_TRACKING_SINGLE and material_out.tracking == Material.MA_TRACKING_SINGLE:
|
||||||
for mlogbwin in Mlogbw.objects.filter(mlogb=mlogbin).order_by("number"):
|
for mlogbwin in Mlogbw.objects.filter(mlogb=mlogbin).order_by("number"):
|
||||||
wpr_ = mlogbin.wpr
|
wpr_ = mlogbwin.wpr
|
||||||
Mlogbw.objects.get_or_create(wpr=wpr_, mlogb=mlogbout, defaults={"number": wpr_.number, "mlogbw_from": mlogbwin})
|
Mlogbw.objects.get_or_create(wpr=wpr_, mlogb=mlogbout, defaults={"number": wpr_.number, "mlogbw_from": mlogbwin})
|
||||||
elif mtype == Process.PRO_DIV: # 切分 支持批到批,个到个, 个到批
|
elif mtype == Process.PRO_DIV: # 切分 支持批到批,个到个, 个到批
|
||||||
div_number = route.div_number
|
div_number = route.div_number
|
||||||
|
|
Loading…
Reference in New Issue