update_cutting_list_with_operation bug

This commit is contained in:
caoqianming 2022-01-04 17:06:12 +08:00
parent bf711ec9c2
commit 262895d6e6
1 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,8 @@ class WpmServies(object):
for m in input_q:
count_cut = count_cut + m.count
from_batch = from_batch + ';' + m.batch if m.batch else from_batch
i.count_cut = count_cut
i.from_batch = from_batch
wpfs = WproductFlow.objects.filter(subproduction_plan=i.subproduction_plan,
is_lastlog=True, coperation=op)# 筛选本次操作下子计划的产品日志
i.count_real = wpfs.count()