fix: mlogbin创建mlogbw的错误2

This commit is contained in:
caoqianming 2025-01-06 10:40:33 +08:00
parent 84723967dc
commit fc56ecea08
1 changed files with 1 additions and 0 deletions

View File

@ -503,6 +503,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
if mlogbin.count_use == wm_in.count: # 自动创建mlogbw if mlogbin.count_use == wm_in.count: # 自动创建mlogbw
# 先暂时不考虑合并与拆分 # 先暂时不考虑合并与拆分
mlogbout.count_real = wm_in.count mlogbout.count_real = wm_in.count
mlogbout.count_ok = wm_in.count
mlogbout.save() mlogbout.save()
m_out_t = material_out.tracking m_out_t = material_out.tracking
for wpr in Wpr.objects.filter(wm=wm_in).order_by("number"): for wpr in Wpr.objects.filter(wm=wm_in).order_by("number"):