fix: is_fix支持个到个的bug
This commit is contained in:
parent
126ef8a1b8
commit
5011ef8076
|
@ -677,7 +677,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
|
|||
elif is_fix:# 支持批到批,个到个
|
||||
d_count_real = mlogbin.count_use-mlogbin.count_pn_jgqbl
|
||||
d_count_ok = d_count_real
|
||||
Mlogb.objects.get_or_create(mlogb_from=mlogbin, defaults=update_dict(m_dict,{"count_real": d_count_real, "count_ok": d_count_ok}))
|
||||
mlogbout, _ = Mlogb.objects.get_or_create(mlogb_from=mlogbin, defaults=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:
|
||||
for mlogbwin in Mlogbw.objects.filter(mlogb=mlogbin).order_by("number"):
|
||||
wpr_ = mlogbwin.wpr
|
||||
|
|
Loading…
Reference in New Issue